From d4cf1a0d8472859e412e967b603b5e9068116bb5 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Sun, 27 May 2007 21:35:37 +0000 Subject: 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@ --- sys/arch/i386/i386/locore.s | 14 +------------- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3