flanterm PAGE FAULT, tries to access NULL or NULL+small offset

This commit is contained in:
2026-03-02 11:32:24 +01:00
parent 1f055ab31c
commit 9df33b49d8
3 changed files with 22 additions and 11 deletions

View File

@@ -20,13 +20,13 @@ enum ErrorCodes
#include "io/term/printf.h"
#include "idt/idt.h"
//#define DEBUG(log, ...) fctprintf((void*)&skputc, 0, "debug: [%s]: " log "\r\n", __FILE__, ##__VA_ARGS__)
#define DEBUG(log, ...) fctprintf((void*)&skputc, 0, "debug: [%s]: " log "\r\n", __FILE__, ##__VA_ARGS__)
#define DEBUG(log, ...) \
/* #define DEBUG(log, ...) \
printf("debug: [%s]: " log "\r\n", __FILE__, ##__VA_ARGS__); \
fctprintf((void*)&skputc, 0, "debug: [%s]: " log "\r\n", __FILE__, ##__VA_ARGS__)
*/
#define DIE_DEBUG(str) fctprintf((void*)&skputc, 0, str)