diff options
author | Frans Kaashoek <[email protected]> | 2017-02-01 19:18:47 -0500 |
---|---|---|
committer | Frans Kaashoek <[email protected]> | 2017-02-01 19:18:47 -0500 |
commit | 7c00ce8110e045a5d0b7b95194561b71d7c0d2b6 (patch) | |
tree | d8a8c6258b9b1b697463d277e601d896084752c7 /proc.c | |
parent | ed396c068b881877330f7d40bfce02db9b1199b3 (diff) | |
download | xv6-labs-7c00ce8110e045a5d0b7b95194561b71d7c0d2b6.tar.gz xv6-labs-7c00ce8110e045a5d0b7b95194561b71d7c0d2b6.tar.bz2 xv6-labs-7c00ce8110e045a5d0b7b95194561b71d7c0d2b6.zip |
shorten comment
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -36,13 +36,9 @@ cpuid() { struct cpu* mycpu(void) { - // Would prefer to panic but even printing is chancy here: almost everything, - // including cprintf and panic, calls mycpu(), often indirectly through - // acquire and release. if(readeflags()&FL_IF){ - static int n; - if(n++ == 0) - cprintf("mycpu called from %x with interrupts enabled\n", + // Would prefer to panic but panic calls mycpu(). + cprintf("mycpu called from %x with interrupts enabled\n", __builtin_return_address(0)); } |