Changeset 4fb6bf36 in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2008-01-11T17:49:35Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ee4322
- Parents:
- eb27ce5a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
reb27ce5a r4fb6bf36 104 104 void arch_pre_mm_init(void) 105 105 { 106 cpu_info_t cpuid_s; 107 108 cpuid(AMD_CPUID_EXTENDED,&cpuid_s); 109 if (! (cpuid_s.cpuid_edx & (1<<AMD_EXT_NOEXECUTE))) 110 panic("Processor does not support No-execute pages.\n"); 111 112 cpuid(INTEL_CPUID_STANDARD,&cpuid_s); 113 if (! (cpuid_s.cpuid_edx & (1<<INTEL_FXSAVE))) 114 panic("Processor does not support FXSAVE/FXRESTORE.\n"); 115 116 if (! (cpuid_s.cpuid_edx & (1<<INTEL_SSE2))) 117 panic("Processor does not support SSE2 instructions.\n"); 118 119 /* Enable No-execute pages */ 106 /* Enable no-execute pages */ 120 107 set_efer_flag(AMD_NXE_FLAG); 121 108 /* Enable FPU */ … … 124 111 /* Initialize segmentation */ 125 112 pm_init(); 126 127 128 * clear the NT (nested-thread) flag113 114 /* Disable I/O on nonprivileged levels 115 * clear the NT (nested-thread) flag 129 116 */ 130 117 clean_IOPL_NT_flags();
Note:
See TracChangeset
for help on using the changeset viewer.