VirtualBox

Ignore:
Timestamp:
Apr 24, 2016 2:57:13 PM (9 years ago)
Author:
vboxsync
Message:

bs3kit: updates.

Location:
trunk/src/VBox/ValidationKit/bootsectors/bs3kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingProtect.c

    r60676 r60678  
    3737*   Defined Constants And Macros                                                                                                 *
    3838*********************************************************************************************************************************/
    39 #if 1
     39#if 0
    4040# define BS3PAGING_DPRINTF1(a) Bs3TestPrintf a
    4141#else
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-RegCtxSetGrpSegFromFlat.c

    r60676 r60678  
    5555    /* Adjust CS to the right ring, if not ring-0 or V86 context. */
    5656    if (   pRegCtx->bCpl != 0
    57         && !BS3_MODE_IS_RM_OR_V86(pRegCtx->bMode)
    58         && BS3_SEL_IS_IN_R0_RANGE(*pSel))
     57        && !BS3_MODE_IS_RM_OR_V86(pRegCtx->bMode))
    5958    {
    60         *pSel += (uint16_t)pRegCtx->bCpl << BS3_SEL_RING_SHIFT;
     59        if (BS3_SEL_IS_IN_R0_RANGE(*pSel))
     60            *pSel += (uint16_t)pRegCtx->bCpl << BS3_SEL_RING_SHIFT;
    6161        *pSel |= pRegCtx->bCpl;
    6262    }
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