diff options
author | phk <phk@FreeBSD.org> | 2004-01-19 21:27:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-01-19 21:27:11 +0000 |
commit | 6a1db39d2c38b34647c41618a3e9bd22ebb5171a (patch) | |
tree | a0623147901e142942da35531b97b56eaa91b4db /sys/i386 | |
parent | 996a053df7fa476718ad69ea506a440a20469c4f (diff) | |
download | FreeBSD-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.s | 12 |
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 |