Switch to nanoprintf + good spinlock (rflags) = no more FLANTERM ISSUES???

This commit is contained in:
2026-03-15 09:34:17 +01:00
parent 6a3abb0f55
commit af3a9e27fd
15 changed files with 1708 additions and 1039 deletions
+3 -4
View File
@@ -16,20 +16,19 @@ enum ErrorCodes {
#define SET_INTERRUPTS __asm__ volatile("sti")
#include "io/serial/serial.h"
#include "io/term/printf.h"
#include "io/term/term.h"
#include "idt/idt.h"
#include <stdbool.h>
extern volatile uint64_t ticks;
#define DEBUG(log, ...) fctprintf((void*)&skputc, 0, "[%8u] debug: <%s>: " log "\r\n", ticks, __func__, ##__VA_ARGS__)
#define DEBUG(log, ...) printf("[%8u] debug: <%s>: " log "\r\n", ticks, __func__, ##__VA_ARGS__)
/* #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)
#define DIE_DEBUG(str) printf(str)
#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))