VirtualBox

Ignore:
Timestamp:
Jan 18, 2017 7:34:34 PM (8 years ago)
Author:
vboxsync
Message:

bs3kit: More #PF testing.

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  
    294294        test    edx, X86_CPUID_EXT_FEATURE_EDX_LONG_MODE
    295295        jz      .no_long_mode
    296         or      ax, BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE
    297         jmp     .return
     296        or      ah, ((BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE) >> 8)
     297        jmp     .no_check_for_nx
    298298.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
    301306.no_ext_leaves:
    302307        pop     xAX                     ; restore PAE+PProOrNewer
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h

    r64751 r65366  
    33813381/** Flag indicating that the CPU supports long mode. */
    33823382#define BS3CPU_F_LONG_MODE          UINT16_C(0x1000)
     3383/** Flag indicating that the CPU supports NX. */
     3384#define BS3CPU_F_NX                 UINT16_C(0x2000)
    33833385/** @} */
    33843386
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac

    r64694 r65366  
    17031703%define BS3CPU_F_PSE_BIT            11
    17041704%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
    17051708;; @}
    17061709
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette