X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B?a=blobdiff_plain;f=kernel%2Finclude%2Fpanic.h;fp=include%2Farch%2Fx86%2Fpanic.h;h=f481e0cd0a4a745f7520d5b4430336cce8c641f6;hb=d895d72c4e8625b435add9067fe8f7298de2d301;hp=c66d6c7b06e9c3ad84308653d96c53d951a021dd;hpb=835338a188a8b48ee2e83f9ad647937d70addc0c;p=nameless-os.git diff --git a/include/arch/x86/panic.h b/kernel/include/panic.h similarity index 87% rename from include/arch/x86/panic.h rename to kernel/include/panic.h index c66d6c7..f481e0c 100644 --- a/include/arch/x86/panic.h +++ b/kernel/include/panic.h @@ -1,13 +1,7 @@ #ifndef PANIC_H #define PANIC_H -void halt() -{ - asm("cli":); -loop: - asm("hlt":); - goto loop; -} +extern void halt(); #define PANIC(msg) \ kprint("PANIC (", VGA_COLOR_BRIGHT_RED);\