DEBUG fix
This commit is contained in:
@@ -125,7 +125,7 @@ struct cpu_status_t* interrupt_dispatch(struct cpu_status_t* context)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 32:
|
case 32:
|
||||||
DEBUG("Tick!");
|
//DEBUG("Tick!");
|
||||||
ticks++;
|
ticks++;
|
||||||
// Send an EOI so that we can continue having interrupts
|
// Send an EOI so that we can continue having interrupts
|
||||||
outb(0x20, 0x20);
|
outb(0x20, 0x20);
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ enum ErrorCodes
|
|||||||
#include "io/serial/serial.h"
|
#include "io/serial/serial.h"
|
||||||
#include "io/term/printf.h"
|
#include "io/term/printf.h"
|
||||||
|
|
||||||
#define DEBUG(log) \
|
// Still lacks print formatting...
|
||||||
|
#define DEBUG(log, ...) \
|
||||||
|
printf("debug: [%s]: " log "\n", __FILE__, ##__VA_ARGS__); \
|
||||||
fctprintf((void*)&skputc, 0, "debug: [%s]: %s\n", __FILE__, log)
|
fctprintf((void*)&skputc, 0, "debug: [%s]: %s\n", __FILE__, log)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -61,8 +61,7 @@ void kmain()
|
|||||||
|
|
||||||
// Draw something
|
// Draw something
|
||||||
printf("%s, %s!\n", "Hello", "world");
|
printf("%s, %s!\n", "Hello", "world");
|
||||||
|
|
||||||
// Yoohoooooo!
|
// Yoohoooooo!
|
||||||
DEBUG("kernel initialized successfully! hanging...");
|
DEBUG("kernel initialized successfully! hanging... wow=%d", 42);
|
||||||
hcf();
|
hcf();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user