VirtualBox

Ignore:
Timestamp:
Feb 7, 2020 1:12:36 PM (5 years ago)
Author:
vboxsync
Message:

bs3kit: Do the long mode check in bs3-first-init-all-lm64.asm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-first-init-all-lm64.asm

    r83003 r83017  
    3636extern NAME(Main_lm64)
    3737extern NAME(Bs3Shutdown_c64)
     38extern BS3_DATA_NM(g_uBs3CpuDetected)
     39extern NAME(Bs3PrintStrN_c16)
     40extern NAME(Bs3Panic_c16)
    3841
    3942;; Entry point.
     
    5154
    5255        ;
     56        ; Check that long mode is supported.
     57        ;
     58        test    word [BS3_DATA_NM(g_uBs3CpuDetected)], BS3CPU_F_LONG_MODE
     59        jnz     .long_mode_supported
     60        push    .s_szLongModeError_End - .s_szLongModeError
     61        push    cs
     62        push    .s_szLongModeError wrt CGROUP16
     63        call    NAME(Bs3PrintStrN_c16)
     64        call    NAME(Bs3Panic_c16)
     65.long_mode_supported:
     66
     67        ;
    5368        ; Switch to LM64 and call main.
    5469        ;
     
    6075        call    NAME(Bs3Shutdown_c64)
    6176
     77.s_szLongModeError:
     78        db      'BS3 Error! Long mode not supported!', 0ah, 0dh
     79.s_szLongModeError_End:
     80        db      00h
     81
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