summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-01-19 21:27:11 +0000
committerphk <phk@FreeBSD.org>2004-01-19 21:27:11 +0000
commit6a1db39d2c38b34647c41618a3e9bd22ebb5171a (patch)
treea0623147901e142942da35531b97b56eaa91b4db /sys/i386
parent996a053df7fa476718ad69ea506a440a20469c4f (diff)
downloadFreeBSD-src-6a1db39d2c38b34647c41618a3e9bd22ebb5171a.zip
FreeBSD-src-6a1db39d2c38b34647c41618a3e9bd22ebb5171a.tar.gz
Add linenumber and source filename to panic(9) output.
Ideally a traceback should be printed too, any takers ?
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/swtch.s12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s
index e1d63a6..3782cc9 100644
--- a/sys/i386/i386/swtch.s
+++ b/sys/i386/i386/swtch.s
@@ -303,20 +303,26 @@ cpu_switch_load_gs:
#ifdef INVARIANTS
badsw1:
pushal
+ pushl $0
+ pushl $0
pushl $sw0_1
- call panic
+ call __panic
sw0_1: .asciz "cpu_throw: no newthread supplied"
badsw2:
pushal
+ pushl $0
+ pushl $0
pushl $sw0_2
- call panic
+ call __panic
sw0_2: .asciz "cpu_switch: no curthread supplied"
badsw3:
pushal
+ pushl $0
+ pushl $0
pushl $sw0_3
- call panic
+ call __panic
sw0_3: .asciz "cpu_switch: no newthread supplied"
#endif
OpenPOWER on IntegriCloud