mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Major interrupt change
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <error/debug.h>
|
||||
#include <ports/serial.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
int debugf(const char* fmt, ...) {
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
serialPrint(PORT_COM1, fmt); // TODO: use a printf
|
||||
int res = 0;
|
||||
va_end(va);
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#include <error/panic.h>
|
||||
|
||||
void panic() {
|
||||
// TODO: print a message
|
||||
while (1) { __asm__ volatile ("cli; hlt"); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user