summaryrefslogtreecommitdiff
path: root/lapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapic.c')
-rw-r--r--lapic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapic.c b/lapic.c
index 7507f97..9039665 100644
--- a/lapic.c
+++ b/lapic.c
@@ -99,11 +99,11 @@ lapicinit(void)
}
int
-cpunum(void)
+lapiccpunum(void)
{
int apicid, i;
- // Cannot call cpu when interrupts are enabled:
+ // Cannot call cpunum when interrupts are enabled:
// result not guaranteed to last long enough to be used!
// Would prefer to panic but even printing is chancy here:
// almost everything, including cprintf and panic, calls cpu,
@@ -111,7 +111,7 @@ cpunum(void)
if(readeflags()&FL_IF){
static int n;
if(n++ == 0)
- cprintf("cpu called from %x with interrupts enabled\n",
+ cprintf("cpunum called from %x with interrupts enabled\n",
__builtin_return_address(0));
}