mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Turn on CR4_VME on the AP's the same as the BSP. Note that we do not
[yet] probe the AP's for their cpuid/capabilities etc, so this is a fudge at best. Problem noted by: Jonathan Lemon <jlemon@americantv.com>
This commit is contained in:
parent
586526be29
commit
ca6e514c81
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29702
@ -31,7 +31,7 @@
|
||||
* mpboot.s: FreeBSD machine support for the Intel MP Spec
|
||||
* multiprocessor systems.
|
||||
*
|
||||
* $Id: mpboot.s,v 1.3 1997/08/25 10:57:36 peter Exp $
|
||||
* $Id: mpboot.s,v 1.4 1997/08/26 18:10:32 peter Exp $
|
||||
*/
|
||||
|
||||
#include <machine/asmacros.h> /* miscellaneous asm macros */
|
||||
@ -92,6 +92,18 @@ mp_begin: /* now running relocated at KERNBASE */
|
||||
call _init_secondary /* load i386 tables */
|
||||
CHECKPOINT(0x38, 5)
|
||||
|
||||
#ifdef VM86
|
||||
/*
|
||||
* If the [BSP] CPU has support for VME, turn it on.
|
||||
*/
|
||||
testl $CPUID_VME, _cpu_feature /* XXX WRONG! BSP! */
|
||||
jz 1f
|
||||
movl %cr4, %eax
|
||||
orl $CR4_VME, %eax
|
||||
movl %eax, %cr4
|
||||
1:
|
||||
#endif
|
||||
|
||||
/* disable the APIC, just to be SURE */
|
||||
movl lapic_svr, %eax /* get spurious vector reg. */
|
||||
andl $~APIC_SVR_SWEN, %eax /* clear software enable bit */
|
||||
|
@ -31,7 +31,7 @@
|
||||
* mpboot.s: FreeBSD machine support for the Intel MP Spec
|
||||
* multiprocessor systems.
|
||||
*
|
||||
* $Id: mpboot.s,v 1.3 1997/08/25 10:57:36 peter Exp $
|
||||
* $Id: mpboot.s,v 1.4 1997/08/26 18:10:32 peter Exp $
|
||||
*/
|
||||
|
||||
#include <machine/asmacros.h> /* miscellaneous asm macros */
|
||||
@ -92,6 +92,18 @@ mp_begin: /* now running relocated at KERNBASE */
|
||||
call _init_secondary /* load i386 tables */
|
||||
CHECKPOINT(0x38, 5)
|
||||
|
||||
#ifdef VM86
|
||||
/*
|
||||
* If the [BSP] CPU has support for VME, turn it on.
|
||||
*/
|
||||
testl $CPUID_VME, _cpu_feature /* XXX WRONG! BSP! */
|
||||
jz 1f
|
||||
movl %cr4, %eax
|
||||
orl $CR4_VME, %eax
|
||||
movl %eax, %cr4
|
||||
1:
|
||||
#endif
|
||||
|
||||
/* disable the APIC, just to be SURE */
|
||||
movl lapic_svr, %eax /* get spurious vector reg. */
|
||||
andl $~APIC_SVR_SWEN, %eax /* clear software enable bit */
|
||||
|
Loading…
Reference in New Issue
Block a user