Changeset 32133 in vbox
- Timestamp:
- Aug 31, 2010 12:06:50 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vm.h
r32124 r32133 95 95 /** Ring-0 Host Context VM Pointer. */ 96 96 PVMR0 pVMR0; 97 /** Alignment padding. */ 98 RTR0PTR pvR0Padding; 97 99 /** Raw-mode Context VM Pointer. */ 98 100 PVMRC pVMRC; … … 112 114 STAMPROFILEADV aStatAdHoc[8]; 113 115 114 #if HC_ARCH_BITS == 32115 116 /** Align the next bit on a 64-byte boundary and make sure it starts at the same 116 117 * offset in both 64-bit and 32-bit builds. … … 121 122 * following it (to grow into and align the struct size). 122 123 * */ 123 uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 20 : 0]; 124 #endif 124 uint8_t abAlignment1[HC_ARCH_BITS == 32 ? 64 : 56]; 125 125 126 126 /** CPUM part. */ … … 207 207 208 208 /** Align the following members on page boundrary. */ 209 uint8_t abAlignment2[ 256];209 uint8_t abAlignment2[192]; 210 210 211 211 /** PGM part. */ -
trunk/include/VBox/vm.mac
r32124 r32133 117 117 .pVMR3 RTR3PTR_RES 1 118 118 .pVMR0 RTR0PTR_RES 1 119 .pvR0Padding RTR0PTR_RES 1 119 120 .pVMRC RTRCPTR_RES 1 120 121 .idCpu resd 1 -
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r31402 r32133 228 228 CHECK_PADDING_VMCPU(64, iom); 229 229 CHECK_PADDING_VMCPU(64, dbgf); 230 PRINT_OFFSET(VMCPU, abAlignment2); 231 PRINT_OFFSET(VMCPU, pgm); 230 232 CHECK_PADDING_VMCPU(4096, pgm); 231 233 #ifdef VBOX_WITH_STATISTICS
Note:
See TracChangeset
for help on using the changeset viewer.