Changeset 59945 in vbox
- Timestamp:
- Mar 7, 2016 4:21:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
r59938 r59945 216 216 217 217 ; Check for extended leaves and long mode. 218 push xAX ; save PAE flag 218 219 mov eax, 0x80000000 219 220 cpuid … … 224 225 mov eax, 0x80000001 225 226 cpuid 227 pop xAX ; restore PAE flag 226 228 test edx, X86_CPUID_EXT_FEATURE_EDX_LONG_MODE 227 229 jz .no_long_mode 228 mov xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID| BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE230 or xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE 229 231 jmp .return 230 232 .no_long_mode: 231 mov xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID| BS3CPU_F_CPUID_EXT_LEAVES233 or xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID_EXT_LEAVES 232 234 jmp .return 233 235 .no_ext_leaves: 234 mov xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID 236 pop xAX ; restore PAE flag 237 or al, BS3CPU_PProOrNewer 235 238 236 239 CPU 8086
Note:
See TracChangeset
for help on using the changeset viewer.