Add the CR4 values for P3 SIMD enabling support. FXSR tells the cpu that
the OS does FXSAVE/FXRESTOR instructions (fast FPU save/restore) during context switching and also enables SIMD since this enables saving the extra CPU context that isn't saved with normal FPU regs. The other enables the SIMD instructions to use exception 16 (FPU) error reporting. Note, this doesn't turn on SIMD, just defines the bits.
This commit is contained in:
parent
c45b612ff1
commit
9686d60c61
@ -71,6 +71,8 @@
|
||||
#define CR4_MCE 0x00000040 /* Machine check enable */
|
||||
#define CR4_PGE 0x00000080 /* Page global enable */
|
||||
#define CR4_PCE 0x00000100 /* Performance monitoring counter enable */
|
||||
#define CR4_FXSR 0x00000200 /* Fast FPU save/restore used by OS */
|
||||
#define CR4_XMM 0x00000400 /* enable SIMD/MMX2 to use except 16 */
|
||||
|
||||
/*
|
||||
* CPUID instruction features register
|
||||
|
@ -71,6 +71,8 @@
|
||||
#define CR4_MCE 0x00000040 /* Machine check enable */
|
||||
#define CR4_PGE 0x00000080 /* Page global enable */
|
||||
#define CR4_PCE 0x00000100 /* Performance monitoring counter enable */
|
||||
#define CR4_FXSR 0x00000200 /* Fast FPU save/restore used by OS */
|
||||
#define CR4_XMM 0x00000400 /* enable SIMD/MMX2 to use except 16 */
|
||||
|
||||
/*
|
||||
* CPUID instruction features register
|
||||
|
Loading…
Reference in New Issue
Block a user