VirtualBox

Ignore:
Timestamp:
Jun 2, 2016 12:48:41 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107707
Message:

bs3kit: raw-mode.

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

Legend:

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

    r60527 r61393  
    7373            pPdPtr->a[3].u = pPdPtr->a[2].u + _4K;
    7474
     75            /* Free up 8 consequtive entries for raw-mode hypervisor code. */
     76            if (1) /** @todo detect raw-mode and only do this then. */
     77                for (i = 0; i < 8; i++)
     78                    paPgDirs->a[i + (UINT32_C(0xc0000000) >> X86_PD_PAE_SHIFT)].b.u1Present = 0;
     79
    7580            /* Set the global root pointer and we're done. */
    7681            BS3_XPTR_SET(X86PDPT, XPtrPdPtr, pPdPtr);
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingInitRootForPP.c

    r60527 r61393  
    9797                pPgDir->a[i].u |= X86_PDE4M_P | X86_PDE4M_RW | X86_PDE4M_US | X86_PDE4M_PS | X86_PDE4M_A | X86_PDE4M_D;
    9898            }
     99
     100            /* Free up 4 consequtive entries for raw-mode hypervisor code. */
     101            if (1) /** @todo detect raw-mode and only do this then. */
     102                for (i = 0; i < 4; i++)
     103                    pPgDir->a[i + (UINT32_C(0xc0000000) >> X86_PD_SHIFT)].b.u1Present = 0;
    99104        }
    100105        else
Note: See TracChangeset for help on using the changeset viewer.

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