From d01404c8285e7b87c1bc1531c4d95c9c57d12210 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 30 Oct 2001 00:19:42 +0000 Subject: [PATCH] Fix a typo in comment and #ifdef fixes: GRAP_PRIO -> GRAB_PRIO so that x86 SMP kernels actually boot again to single user mode. Pointy hat to: jhb Noticed by: jlemon --- sys/amd64/amd64/cpu_switch.S | 2 +- sys/amd64/amd64/swtch.s | 2 +- sys/i386/i386/swtch.s | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index 4fa679889aad..14e449596881 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -228,7 +228,7 @@ sw1b: movl PCB_EIP(%edx),%eax movl %eax,(%esp) -#if defined(SMP) && defined(GRAP_LOPRIO) +#if defined(SMP) && defined(GRAB_LOPRIO) /* Hold LOPRIO for interrupts. */ #ifdef CHEAP_TPR movl $0, lapic+LA_TPR diff --git a/sys/amd64/amd64/swtch.s b/sys/amd64/amd64/swtch.s index 4fa679889aad..14e449596881 100644 --- a/sys/amd64/amd64/swtch.s +++ b/sys/amd64/amd64/swtch.s @@ -228,7 +228,7 @@ sw1b: movl PCB_EIP(%edx),%eax movl %eax,(%esp) -#if defined(SMP) && defined(GRAP_LOPRIO) +#if defined(SMP) && defined(GRAB_LOPRIO) /* Hold LOPRIO for interrupts. */ #ifdef CHEAP_TPR movl $0, lapic+LA_TPR diff --git a/sys/i386/i386/swtch.s b/sys/i386/i386/swtch.s index 4fa679889aad..14e449596881 100644 --- a/sys/i386/i386/swtch.s +++ b/sys/i386/i386/swtch.s @@ -228,7 +228,7 @@ sw1b: movl PCB_EIP(%edx),%eax movl %eax,(%esp) -#if defined(SMP) && defined(GRAP_LOPRIO) +#if defined(SMP) && defined(GRAB_LOPRIO) /* Hold LOPRIO for interrupts. */ #ifdef CHEAP_TPR movl $0, lapic+LA_TPR