blob: f4e0f26c8d0e395717700ea1b94849f20d00cefd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
;
; 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 printf
panic:
push ebp
mov ebp, esp
push .msg
call printf
add esp, 4
cli
hlt
.msg: db "Kernel panic!", 10, 0
|