summaryrefslogtreecommitdiff
path: root/kernel/panic.s
blob: 1f4605dee3618f0b9a05bd3e98d84f6222fbaaa9 (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 printk

panic:
  push ebp
  mov ebp, esp
  push .msg
  call printk
  add esp, 4
  cli
  hlt
.msg: db "Kernel panic!", 10, 0