; ; panic.s - provides panic() which disables ; interrupts and halts the system. currently used ; mainly for debugging, will eventually be expanded ; to display some useful information on the ; console. ; global panic extern printk panic: push ebp mov ebp, esp push .msg call printk add esp, 4 cli hlt .msg: db "Kernel panic!", 10, 0