Changeset 9692 in vbox for trunk/src/VBox
- Timestamp:
- Jun 13, 2008 4:03:19 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMInternal.h
r9690 r9692 1287 1287 /** PAE Page Directory Table 3. */ 1288 1288 #define PGMPOOL_IDX_PAE_PD_3 6 1289 /** AMD64 Page Directory Table. */1290 #define PGMPOOL_IDX_AMD64_PD 71291 1289 /** Page Directory Pointer Table (PAE root, not currently used). */ 1292 #define PGMPOOL_IDX_PDPT 81290 #define PGMPOOL_IDX_PDPT 7 1293 1291 /** Page Map Level-4 (64-bit root). */ 1294 #define PGMPOOL_IDX_PML4 91292 #define PGMPOOL_IDX_PML4 8 1295 1293 /** The first normal index. */ 1296 #define PGMPOOL_IDX_FIRST 101294 #define PGMPOOL_IDX_FIRST 9 1297 1295 /** The last valid index. (inclusive, 14 bits) */ 1298 1296 #define PGMPOOL_IDX_LAST 0x3fff -
trunk/src/VBox/VMM/PGMPool.cpp
r9691 r9692 259 259 pPool->aPages[PGMPOOL_IDX_PAE_PD_0 + i].idx = PGMPOOL_IDX_PAE_PD_0 + i; 260 260 } 261 261 262 262 /* The Shadow PDPT. */ 263 263 pPool->aPages[PGMPOOL_IDX_PDPT].Core.Key = NIL_RTHCPHYS; -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r9690 r9692 3017 3017 && !(pPDDst->a[iPD].u & PGM_PDFLAGS_MAPPING)) 3018 3018 { 3019 AssertCompile(PGMPOOL_IDX_AMD64_PD == SHW_POOL_ROOT_IDX); 3020 pgmPoolFreeByPage(pPool, pgmPoolGetPage(pPool, pPDDst->a[iPD].u & SHW_PDE_PG_MASK), PGMPOOL_IDX_AMD64_PD, (iPML4E * X86_PG_PAE_ENTRIES + iPDPTE) * X86_PG_PAE_ENTRIES + iPD); 3019 pgmPoolFreeByPage(pPool, pgmPoolGetPage(pPool, pPDDst->a[iPD].u & SHW_PDE_PG_MASK), SHW_POOL_ROOT_IDX, (iPML4E * X86_PG_PAE_ENTRIES + iPDPTE) * X86_PG_PAE_ENTRIES + iPD); 3021 3020 pPDDst->a[iPD].u = 0; 3022 3021 } -
trunk/src/VBox/VMM/VMMAll/PGMAllShw.h
r9690 r9692 78 78 # define SHW_PDPT_MASK X86_PDPT_MASK_AMD64 79 79 # define SHW_TOTAL_PD_ENTRIES (X86_PG_AMD64_ENTRIES*X86_PG_AMD64_PDPE_ENTRIES) 80 # define SHW_POOL_ROOT_IDX PGMPOOL_IDX_ AMD64_PD80 # define SHW_POOL_ROOT_IDX PGMPOOL_IDX_PAE_PD 81 81 #else /* 32 bits PAE mode */ 82 82 # define SHW_PDPT_SHIFT X86_PDPT_SHIFT
Note:
See TracChangeset
for help on using the changeset viewer.