Changeset 65366 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Timestamp:
- Jan 18, 2017 7:34:34 PM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm
r60674 r65366 294 294 test edx, X86_CPUID_EXT_FEATURE_EDX_LONG_MODE 295 295 jz .no_long_mode 296 or a x, BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE297 jmp . return296 or ah, ((BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE) >> 8) 297 jmp .no_check_for_nx 298 298 .no_long_mode: 299 or ax, BS3CPU_F_CPUID_EXT_LEAVES 300 jmp .return 299 or ah, (BS3CPU_F_CPUID_EXT_LEAVES >> 8) 300 .no_check_for_nx: 301 test edx, X86_CPUID_EXT_FEATURE_EDX_NX 302 jz .return 303 or ax, BS3CPU_F_NX 304 jmp .return 305 301 306 .no_ext_leaves: 302 307 pop xAX ; restore PAE+PProOrNewer -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r64751 r65366 3381 3381 /** Flag indicating that the CPU supports long mode. */ 3382 3382 #define BS3CPU_F_LONG_MODE UINT16_C(0x1000) 3383 /** Flag indicating that the CPU supports NX. */ 3384 #define BS3CPU_F_NX UINT16_C(0x2000) 3383 3385 /** @} */ 3384 3386 -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac
r64694 r65366 1703 1703 %define BS3CPU_F_PSE_BIT 11 1704 1704 %define BS3CPU_F_LONG_MODE 0x1000 1705 %define BS3CPU_F_LONG_MODE_BIT 12 1706 %define BS3CPU_F_NX 0x2000 1707 %define BS3CPU_F_NX_BIT 13 1705 1708 ;; @} 1706 1709
Note:
See TracChangeset
for help on using the changeset viewer.