diff options
author | Frans Kaashoek <[email protected]> | 2017-02-01 19:21:43 -0500 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2017-02-01 19:21:43 -0500 |
commit | 2e2d14c235b570a6beb222fc1bfa53de85a98de3 (patch) | |
tree | 04d3de5e60934f9f6f7aa2d31b50ff0fda6532cd /console.c | |
parent | 7c00ce8110e045a5d0b7b95194561b71d7c0d2b6 (diff) | |
download | xv6-labs-2e2d14c235b570a6beb222fc1bfa53de85a98de3.tar.gz xv6-labs-2e2d14c235b570a6beb222fc1bfa53de85a98de3.tar.bz2 xv6-labs-2e2d14c235b570a6beb222fc1bfa53de85a98de3.zip |
use panic
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -111,7 +111,8 @@ panic(char *s) cli(); cons.locking = 0; - cprintf("cpu %d: panic: ", cpuid()); + // use lapiccpunum so that we can call panic from mycpu() + cprintf("cpu %d: panic: ", lapiccpunum()); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); |