VirtualBox

Changeset 59945 in vbox


Ignore:
Timestamp:
Mar 7, 2016 4:21:15 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit/bs3-mode-CpuDetect.asm: Carry PAE flag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-mode-CpuDetect.asm

    r59938 r59945  
    216216
    217217        ; Check for extended leaves and long mode.
     218        push    xAX                     ; save PAE flag
    218219        mov     eax, 0x80000000
    219220        cpuid
     
    224225        mov     eax, 0x80000001
    225226        cpuid
     227        pop     xAX                     ; restore PAE flag
    226228        test    edx, X86_CPUID_EXT_FEATURE_EDX_LONG_MODE
    227229        jz      .no_long_mode
    228         mov     xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID | BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE
     230        or      xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID_EXT_LEAVES | BS3CPU_F_LONG_MODE
    229231        jmp     .return
    230232.no_long_mode:
    231         mov     xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID | BS3CPU_F_CPUID_EXT_LEAVES
     233        or      xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID_EXT_LEAVES
    232234        jmp     .return
    233235.no_ext_leaves:
    234         mov     xAX, BS3CPU_PProOrNewer | BS3CPU_F_CPUID
     236        pop     xAX                     ; restore PAE flag
     237        or      al, BS3CPU_PProOrNewer
    235238
    236239CPU 8086
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