diff options
author | rsc <rsc> | 2007-09-27 21:02:03 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-09-27 21:02:03 +0000 |
commit | f97f0d2b3d3afbad3ef154b047f1b0408fd7288b (patch) | |
tree | ab36e25e653a3302b78d5fd1d5c1c2459ff99cd0 /lapic.c | |
parent | c95bde8163eca7a19c95f3b05156e0ad33312589 (diff) | |
download | xv6-labs-f97f0d2b3d3afbad3ef154b047f1b0408fd7288b.tar.gz xv6-labs-f97f0d2b3d3afbad3ef154b047f1b0408fd7288b.tar.bz2 xv6-labs-f97f0d2b3d3afbad3ef154b047f1b0408fd7288b.zip |
cleaner
Diffstat (limited to 'lapic.c')
-rw-r--r-- | lapic.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -101,16 +101,8 @@ cpu(void) // through acquire and release. if(read_eflags()&FL_IF){ static int n; - int i; - uint pcs[10]; - - if(n++%999 == 0){ - getcallerpcs((uint*)read_ebp() + 2, pcs); - cprintf("cpu called from %x with interrupts enabled: stk"); - for(i=0; i<10 && pcs[i] && pcs[i] != -1; i++) - cprintf(" %x", pcs[i]); - cprintf("\n"); - } + if(n++ == 0) + cprintf("cpu called from %x with interrupts enabled\n", ((uint*)read_ebp())[1]); } if(lapic) |