64 #define LOGLEVEL CRITICAL 70 #define DEBUGRAW(a) krn_puts(a) 76 #define DEBUG(loglvl,msg,...) if(loglvl<=LOGLEVEL){ kprintf(#loglvl " [%s:%d] " msg, __FILE__, __LINE__, ##__VA_ARGS__);} 81 #define DEBUGHEX(a) puthex(a) 85 #define DEBUGDEC(a) putdec(a) 102 #define DEBUGHEX(...) 107 #define DEBUGDEC(...) 123 #define BENCH_BEGIN counter_update(1) 124 #define BENCH_END {counter_update(0); DEBUG(TRACE, "Benchmark lasted "); display_time();} 128 kprintf("[%s:%d] Assert failed: " #u "\n", __FILE__, __LINE__); \ void puthex(int n)
Writes an hexadecimal number to the serial output.
Definition: debug.c:115
void kprintf(char *fmt,...)
Definition: debug.c:245
x86 interrupts include file for x86 IAL
Memory Abstraction Layer common interface.
void dumpRegs(int_ctx_t *is, uint32_t outputLevel)
Dumps the registers of a saved interrupt context onto the serial output.
Definition: debug.c:82
void putdec(int n)
Writes a decimal number to the serial output.
Definition: debug.c:161
void counter_update(uint32_t begin)
void panic(int_ctx_t *is)
Just a loop acting like a kernel panic.
Definition: debug.c:65
void krn_puts(char *c)
Writes a string to the serial output.
Definition: debug.c:52