diff options
author | 2007-05-27 21:35:36 +0000 | |
---|---|---|
committer | 2007-05-27 21:35:36 +0000 | |
commit | f16792eec82e9c3e7a250efdd90378d5e95b2f34 (patch) | |
tree | 9d38f53caaad8acea2a76920a4c35f2f8521780e | |
parent | group packing-list validation for replaced packages with added one. (diff) | |
download | wireguard-openbsd-f16792eec82e9c3e7a250efdd90378d5e95b2f34.tar.xz wireguard-openbsd-f16792eec82e9c3e7a250efdd90378d5e95b2f34.zip |
Locore UP can use the same code as MULTIPROCESSOR to access the GDT
once we're up and running; similar to what was just committed for
machdep.c and pmap.c.
ok art@ deraadt@
-rw-r--r-- | sys/arch/i386/i386/locore.s | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index 477d9d10501..11e9c946f05 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.111 2007/05/27 18:34:01 art Exp $ */ +/* $OpenBSD: locore.s,v 1.112 2007/05/27 21:35:36 tom Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -1539,11 +1539,7 @@ ENTRY(idle) movl %ecx,%cr3 /* Switch TSS. Reset "task busy" flag before loading. */ -#ifdef MULTIPROCESSOR movl CPUVAR(GDT), %eax -#else - movl _C_LABEL(gdt),%eax -#endif andl $~0x0200,4-SEL_KPL(%eax,%edx,1) ltr %dx @@ -1741,11 +1737,7 @@ switch_exited: addl $4,%esp /* Load TSS info. */ -#ifdef MULTIPROCESSOR movl CPUVAR(GDT),%eax -#else - movl _C_LABEL(gdt),%eax -#endif movl P_MD_TSS_SEL(%edi),%edx /* Switch TSS. */ @@ -1842,11 +1834,7 @@ ENTRY(switch_exit) movl PCB_EBP(%esi),%ebp /* Load TSS info. */ -#ifdef MULTIPROCESSOR movl CPUVAR(GDT), %eax -#else - movl _C_LABEL(gdt),%eax -#endif /* Switch address space. */ movl PCB_CR3(%esi),%ecx |