diff options
author | Frans Kaashoek <kaashoek@mit.edu> | 2017-02-01 20:36:41 -0500 |
---|---|---|
committer | Frans Kaashoek <kaashoek@mit.edu> | 2017-02-01 20:36:41 -0500 |
commit | c9fa90f7e514f27fa1ac071cd9795f3830ab6a1b (patch) | |
tree | 2bfaf92fbd2a649247af758c8e8967f7df3c45ac /console.c | |
parent | 2e2d14c235b570a6beb222fc1bfa53de85a98de3 (diff) | |
download | xv6-labs-c9fa90f7e514f27fa1ac071cd9795f3830ab6a1b.tar.gz xv6-labs-c9fa90f7e514f27fa1ac071cd9795f3830ab6a1b.tar.bz2 xv6-labs-c9fa90f7e514f27fa1ac071cd9795f3830ab6a1b.zip |
A tiny bit of clean up (e.g., move code searching cpu array from lapic.c into
mycpu() in proc.c.
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -112,7 +112,7 @@ panic(char *s) cli(); cons.locking = 0; // use lapiccpunum so that we can call panic from mycpu() - cprintf("cpu %d: panic: ", lapiccpunum()); + cprintf("lapicid %d: panic: ", lapicid()); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); |