tasking: fix syscall handling, use debug_log instead of printf in some places

This commit is contained in:
2025-06-19 18:31:15 +03:00
parent 93f174827b
commit a9789b7f57
9 changed files with 53 additions and 52 deletions
+12
View File
@@ -10,4 +10,16 @@ int printf(const char* __restrict, ...);
int putchar(int);
int puts(const char*);
//#define KATAU_DEBUG
#ifdef KATAU_DEBUG
#define debug_log printf
#else
static int debug_log(const char* restrict format, ...)
{
}
#endif
#endif
+1 -1
View File
@@ -38,7 +38,7 @@ typedef struct __attribute__((packed)) TrapFrame {
uint32_t gs,fs,es,ds;
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
//uint32_t interrupt, error;
uint32_t interrupt, error;
uint32_t eip, cs, eflags, usermode_esp, usermode_ss;