VirtualBox

Ignore:
Timestamp:
Mar 28, 2016 12:26:40 AM (9 years ago)
Author:
vboxsync
Message:

bs3kit: Optimized BS3_MODE_CODE_V86 checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-SwitchTo16Bit.asm

    r60000 r60218  
    4545        ; Check g_bBs3CurrentMode whether we're in v8086 mode or not.
    4646        mov     al, [BS3_DATA16_WRT(g_bBs3CurrentMode)]
    47         and     al, BS3_MODE_CODE_MASK
    48         cmp     al, BS3_MODE_CODE_V86
    49         jne     .ret_16bit
     47        test    al, BS3_MODE_CODE_V86
     48        jz      .ret_16bit
    5049
    5150        ; Switch to ring-0 if v8086 mode.
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