Changeset 9387 in vbox
- Timestamp:
- Jun 4, 2008 1:51:21 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31619
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbgf.h
r9212 r9387 595 595 /** The breakpoint type. */ 596 596 DBGFBPTYPE enmType; 597 598 #if GC_ARCH_BITS == 64 599 uint32_t u32Padding; 600 #endif 601 597 602 /** Union of type specific data. */ 598 603 union -
trunk/include/VBox/patm.h
r9344 r9387 111 111 } Restore; 112 112 113 #if GC_ARCH_BITS == 64 114 uint32_t padding; 115 #endif 116 113 117 } PATMGCSTATE, *PPATMGCSTATE; 114 118 -
trunk/include/VBox/pdmqueue.h
r9212 r9387 55 55 /** Pointer to the next item in the pending list - GC Pointer. */ 56 56 RCPTRTYPE(PPDMQUEUEITEMCORE) pNextGC; 57 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 3257 #if HC_ARCH_BITS == 64 58 58 uint32_t Alignment0; 59 59 #endif -
trunk/include/iprt/avl.h
r9228 r9387 417 417 /** Height of this tree: max(height(left), height(right)) + 1 */ 418 418 unsigned char uchHeight; 419 unsigned char padding[GC_ARCH_BITS == 64 ? 7 : 3]; 419 420 } AVLOGCPTRNODECORE, *PAVLOGCPTRNODECORE; 420 421 … … 518 519 /** Height of this tree: max(height(left), height(right)) + 1 */ 519 520 unsigned char uchHeight; 521 unsigned char padding[GC_ARCH_BITS == 64 ? 7 : 3]; 520 522 } AVLROGCPTRNODECORE, *PAVLROGCPTRNODECORE; 521 523 -
trunk/src/VBox/Devices/PC/DevPIC.cpp
r9212 r9387 120 120 /** Pointer to the device instance, GCPtr. */ 121 121 RCPTRTYPE(PPDMDEVINS) pDevInsGC; 122 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS != 64123 RT GCPTR Alignment0;122 #if HC_ARCH_BITS == 64 123 RTRCPTR Alignment0; 124 124 #endif 125 125 } PicState; … … 138 138 /** Pointer to the PIC GC helpers. */ 139 139 PCPDMPICHLPGC pPicHlpGC; 140 #if HC_ARCH_BITS == 32 141 uint32_t Alignmnet1; 142 #endif 140 143 /** Pointer to the device instance - GC Ptr. */ 141 144 RCPTRTYPE(PPDMDEVINS) pDevInsGC; 142 145 /** Pointer to the device instance - GC Ptr. */ 143 146 R3R0PTRTYPE(PPDMDEVINS) pDevInsHC; 144 #if HC_ARCH_BITS == 32145 uint32_t Alignmnet0;146 #endif147 147 #ifdef VBOX_WITH_STATISTICS 148 148 STAMCOUNTER StatSetIrqGC; -
trunk/src/VBox/Devices/Serial/DevSerial.cpp
r9212 r9387 124 124 /** Pointer to the device instance. */ 125 125 RCPTRTYPE(PPDMDEVINS) pDevInsGC; 126 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS != 64127 RT GCPTR Alignment0;126 #if HC_ARCH_BITS == 64 127 RTRCPTR Alignment0; 128 128 #endif 129 129 /** The base interface. */ -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r9212 r9387 178 178 /** Pointer to the I/O buffer. */ 179 179 RCPTRTYPE(uint8_t *) pbIOBufferGC; 180 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS != 64181 RT GCPTR Aligmnent0; /**< Align the statistics at an 8-byte boundrary. */180 #if HC_ARCH_BITS == 64 181 RTRCPTR Aligmnent0; /**< Align the statistics at an 8-byte boundrary. */ 182 182 #endif 183 183 -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp
r9307 r9387 625 625 GEN_CHECK_OFF(ATADevState, pbIOBufferHC); 626 626 GEN_CHECK_OFF(ATADevState, pbIOBufferGC); 627 GEN_CHECK_OFF(ATADevState, StatATADMA); 627 628 GEN_CHECK_OFF(ATADevState, StatReads); 628 629 GEN_CHECK_OFF(ATADevState, StatBytesRead); -
trunk/src/VBox/VMM/EMInternal.h
r9212 r9387 275 275 #endif 276 276 277 uint8_t u8Padding[GC_ARCH_BITS == 64 ? 6 : 2]; 278 277 279 /** Inhibit interrupts for this instruction. Valid only when VM_FF_INHIBIT_INTERRUPTS is set. */ 278 280 RTGCUINTPTR GCPtrInhibitInterrupts; … … 337 339 /** More statistics (GC). */ 338 340 RCPTRTYPE(PEMSTATS) pStatsGC; 339 #if HC_ARCH_BITS != GC_ARCH_BITS && GC_ARCH_BITS == 32340 RT GCPTR padding0;341 #if HC_ARCH_BITS == 64 342 RTRCPTR padding0; 341 343 #endif 342 344 -
trunk/src/VBox/VMM/IOMInternal.h
r9282 r9387 87 87 /** Pointer to fill (memset) callback function. */ 88 88 RCPTRTYPE(PFNIOMMMIOFILL) pfnFillCallbackGC; 89 RTGCPTR GCPtrAlignment; /**< Alignment padding */ 89 /** Alignment padding. */ 90 RTRCPTR GCPtrAlignment; 90 91 91 92 /** Description / Name. For easing debugging. */ … … 150 151 /** Avl node core with Port as Key and Port + cPorts - 1 as KeyLast. */ 151 152 AVLROIOPORTNODECORE Core; 152 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 &&!defined(RT_OS_WINDOWS)153 #if HC_ARCH_BITS == 64 && !defined(RT_OS_WINDOWS) 153 154 uint32_t u32Alignment; /**< The sizeof(Core) differs. */ 154 155 #endif … … 182 183 /** Avl node core with Port as Key and Port + cPorts - 1 as KeyLast. */ 183 184 AVLROIOPORTNODECORE Core; 184 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 &&!defined(RT_OS_WINDOWS)185 #if HC_ARCH_BITS == 64 && !defined(RT_OS_WINDOWS) 185 186 uint32_t u32Alignment; /**< The sizeof(Core) differs. */ 186 187 #endif … … 230 231 /** Pointer to string IN callback function. */ 231 232 RCPTRTYPE(PFNIOMIOPORTINSTRING) pfnInStrCallback; 232 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32233 RT GCPTR GCPtrAlignment; /**< pszDesc is 8 byte aligned. */233 #if HC_ARCH_BITS == 64 234 RTRCPTR GCPtrAlignment; /**< pszDesc is 8 byte aligned. */ 234 235 #endif 235 236 /** Description / Name. For easing debugging. */ … … 250 251 /** Avl node core with the port as Key. */ 251 252 AVLOIOPORTNODECORE Core; 252 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 &&!defined(RT_OS_WINDOWS)253 #if HC_ARCH_BITS == 64 && !defined(RT_OS_WINDOWS) 253 254 uint32_t u32Alignment; /**< The sizeof(Core) differs. */ 254 255 #endif … … 341 342 /** The GC address of IOMMMIOHandler. */ 342 343 RCPTRTYPE(PFNPGMGCPHYSHANDLER) pfnMMIOHandlerGC; 344 #if GC_ARCH_BITS == 64 345 RTRCPTR padding; 346 #endif 343 347 RTGCPTR Alignment; 344 348 -
trunk/src/VBox/VMM/MMInternal.h
r9212 r9387 676 676 /** The hypervisor heap (GC Ptr). */ 677 677 RCPTRTYPE(PMMHYPERHEAP) pHyperHeapGC; 678 #if HC_ARCH_BITS == 64 679 uint32_t u32Padding2; 680 #endif 678 681 /** The hypervisor heap (HC Ptr). */ 679 682 R3R0PTRTYPE(PMMHYPERHEAP) pHyperHeapHC; -
trunk/src/VBox/VMM/PATM/PATMInternal.h
r9228 r9387 432 432 RTGCPHYS GCPhys; 433 433 RTRCPTR pCachedData; 434 #if GC_ARCH_BITS == 32435 434 RTRCPTR Alignment0; /**< Align the structure size on a 8-byte boundrary. */ 436 #endif437 435 } mmio; 438 436 -
trunk/src/VBox/VMM/PDMInternal.h
r9212 r9387 110 110 /** GC pointer to associated PCI bus structure. */ 111 111 RCPTRTYPE(PPDMPCIBUS) pPciBusGC; 112 #if GC_ARCH_BITS == 32 112 /** Alignment padding. */ 113 113 uint32_t Alignment0; 114 #endif115 114 } PDMDEVINSINT; 116 115 … … 201 200 /** Pointer to the VM - GCPtr. */ 202 201 RCPTRTYPE(PVM) pVMGC; 203 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32202 #if HC_ARCH_BITS == 64 204 203 uint32_t padding; 205 204 #endif … … 375 374 /** @copydoc PDMPICREG::pfnGetInterruptHC */ 376 375 DECLGCCALLBACKMEMBER(int, pfnGetInterruptGC,(PPDMDEVINS pDevIns)); 377 #if GC_ARCH_BITS == 32 378 RTGCPTR GCPtrPadding; /**< Alignment padding. */ 379 #endif 376 /** Alignment padding. */ 377 RTRCPTR GCPtrPadding; 380 378 } PDMPIC; 381 379 … … 433 431 DECLGCCALLBACKMEMBER(void, pfnBusDeliverGC,(PPDMDEVINS pDevIns, uint8_t u8Dest, uint8_t u8DestMode, uint8_t u8DeliveryMode, 434 432 uint8_t iVector, uint8_t u8Polarity, uint8_t u8TriggerMode)); 435 #if GC_ARCH_BITS == 32 436 RTGCPTR GCPtrPadding; /**< Alignment padding. */ 437 #endif 433 /** Alignment padding. */ 434 RTRCPTR GCPtrPadding; 438 435 } PDMAPIC; 439 436 … … 671 668 /** Pointer to the free item - GC Ptr. */ 672 669 RCPTRTYPE(PPDMQUEUEITEMCORE) volatile pItemGC; 673 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32670 #if HC_ARCH_BITS == 64 674 671 uint32_t Alignment0; 675 672 #endif -
trunk/src/VBox/VMM/PGMInternal.h
r9212 r9387 312 312 /** Pointer to next entry. */ 313 313 RCPTRTYPE(struct PGMMAPPING *) pNextGC; 314 #if GC_ARCH_BITS == 64 315 RTRCPTR padding0; 316 #endif 314 317 /** Start Virtual address. */ 315 318 RTGCUINTPTR GCPtr; … … 326 329 /** Number of page tables. */ 327 330 RTUINT cPTs; 328 #if HC_ARCH_BITS != GC_ARCH_BITS 329 RTUINT uPadding 0; /**< Alignment padding. */331 #if HC_ARCH_BITS != GC_ARCH_BITS || GC_ARCH_BITS == 64 332 RTUINT uPadding1; /**< Alignment padding. */ 330 333 #endif 331 334 /** Array of page table mapping data. Each entry … … 440 443 /** Number of cache pages. */ 441 444 uint32_t cPages; 442 445 #if GC_ARCH_BITS == 64 446 uint32_t padding0; 447 #endif 443 448 /** @todo The next two members are redundant. It adds some readability though. */ 444 449 /** Start of the range. */ … … 450 455 /** Pointer to the GC callback function. */ 451 456 RCPTRTYPE(PFNPGMGCVIRTHANDLER) pfnHandlerGC; 457 #if GC_ARCH_BITS == 64 458 RTRCPTR padding1; 459 #endif 452 460 /** Pointer to the HC callback function for invalidation. */ 453 461 R3PTRTYPE(PFNPGMHCVIRTINVALIDATE) pfnInvalidateHC; … … 910 918 /** Pointer to the next RAM range - for GC. */ 911 919 RCPTRTYPE(struct PGMRAMRANGE *) pNextGC; 912 #if GC_ARCH_BITS == 32913 920 /** Pointer alignment. */ 914 RTGCPTR GCPtrAlignment; 915 #endif 921 RTRCPTR GCPtrAlignment; 916 922 /** Start of the range. Page aligned. */ 917 923 RTGCPHYS GCPhys; … … 996 1002 /** Pointer to the next range - GC. */ 997 1003 RCPTRTYPE(struct PGMROMRANGE *) pNextGC; 998 #if GC_ARCH_BITS == 32 999 RTGCPTR GCPtrAlignment; /**< Pointer alignment. */ 1000 #endif 1004 /** Pointer alignment */ 1005 RTRCPTR GCPtrAlignment; 1001 1006 /** Address of the range. */ 1002 1007 RTGCPHYS GCPhys; … … 1624 1629 * The Id is the index into thist array. 1625 1630 */ 1631 #if GC_ARCH_BITS == 64 1632 uint32_t Alignment4; 1633 #endif 1626 1634 PGMPOOLPAGE aPages[PGMPOOL_IDX_FIRST]; 1627 1635 } PGMPOOL, *PPGMPOOL, **PPPGMPOOL; … … 1908 1916 * are used of the PDs in PAE mode. */ 1909 1917 RTGCPTR GCPtrCR3Mapping; 1910 #if HC_ARCH_BITS == 64 1918 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32 1911 1919 uint32_t u32Alignment; 1912 1920 #endif … … 1955 1963 /** The 32-Bit PD - GC Ptr. */ 1956 1964 RCPTRTYPE(PX86PD) pGC32BitPD; 1957 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 321965 #if HC_ARCH_BITS == 64 1958 1966 uint32_t u32Padding1; /**< alignment padding. */ 1959 1967 #endif … … 1985 1993 * Extends PAE Paging. 1986 1994 * @{ */ 1987 #if GC_ARCH_BITS == 32 &&HC_ARCH_BITS == 641988 RT GCPTR alignment5; /**< structure size alignment. */1995 #if HC_ARCH_BITS == 64 1996 RTRCPTR alignment5; /**< structure size alignment. */ 1989 1997 #endif 1990 1998 /** The Page Map Level 4 table - HC Ptr. */ … … 2036 2044 RCPTRTYPE(PFNPGMGCPHYSHANDLER) pfnGCGstWriteHandlerCR3; 2037 2045 RCPTRTYPE(PFNPGMGCPHYSHANDLER) pfnGCGstPAEWriteHandlerCR3; 2038 #if GC_ARCH_BITS == 32 &&HC_ARCH_BITS == 642039 RT GCPTR alignment3; /**< structure size alignment. */2046 #if HC_ARCH_BITS == 64 2047 RTRCPTR alignment3; /**< structure size alignment. */ 2040 2048 #endif 2041 2049 … … 2078 2086 DECLGCCALLBACKMEMBER(int, pfnGCBthVerifyAccessSyncPage,(PVM pVM, RTGCUINTPTR GCPtrPage, unsigned fFlags, unsigned uError)); 2079 2087 DECLGCCALLBACKMEMBER(unsigned, pfnGCBthAssertCR3,(PVM pVM, uint64_t cr3, uint64_t cr4, RTGCUINTPTR GCPtr, RTGCUINTPTR cb)); 2080 #if GC_ARCH_BITS == 32 &&HC_ARCH_BITS == 642081 RT GCPTR alignment2; /**< structure size alignment. */2088 #if HC_ARCH_BITS == 64 2089 RTRCPTR alignment2; /**< structure size alignment. */ 2082 2090 #endif 2083 2091 /** @} */ … … 2105 2113 RCPTRTYPE(PPGMRAMRANGE) pRomRangesGC; 2106 2114 /** Alignment padding. */ 2107 RT GCPTR GCPtrPadding2;2115 RTRCPTR GCPtrPadding2; 2108 2116 2109 2117 /** Pointer to the list of MMIO2 ranges - for R3. -
trunk/src/VBox/VMM/SELMInternal.h
r9288 r9387 103 103 /** GC Pointer to the LDT shadow area placed in Hypervisor memory arena. */ 104 104 RCPTRTYPE(void *) GCPtrLdt; 105 #if GC_ARCH_BITS == 64 106 RTRCPTR padding0; 107 #endif 105 108 /** GC Pointer to the current Guest's LDT. */ 106 109 RTGCPTR GCPtrGuestLdt; … … 123 126 /** GC Pointer to the TSS shadow area (Tss) placed in Hypervisor memory arena. */ 124 127 RCPTRTYPE(void *) GCPtrTss; 128 #if GC_ARCH_BITS == 64 129 RTRCPTR padding1; 130 #endif 125 131 /** GC Pointer to the current Guest's TSS. */ 126 132 RTGCPTR GCPtrGuestTss; -
trunk/src/VBox/VMM/TMInternal.h
r9379 r9387 184 184 /** Pointer to the VM the timer belongs to - RC Ptr. */ 185 185 PVMRC pVMGC; 186 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32187 RT GCPTR padding0; /**< pad structure to multiple of 8 bytes. */186 #if HC_ARCH_BITS == 64 187 RTRCPTR padding0; /**< pad structure to multiple of 8 bytes. */ 188 188 #endif 189 189 } TMTIMER; -
trunk/src/VBox/VMM/VMMInternal.h
r9244 r9387 188 188 /** The last GC return code. */ 189 189 RTINT iLastGCRc; 190 #if HC_ARCH_BITS == 64 && GC_ARCH_BITS == 32190 #if HC_ARCH_BITS == 64 191 191 uint32_t u32Padding0; /**< Alignment padding. */ 192 192 #endif
Note:
See TracChangeset
for help on using the changeset viewer.