VirtualBox

Changeset 45097 in vbox


Ignore:
Timestamp:
Mar 19, 2013 7:05:53 PM (12 years ago)
Author:
vboxsync
Message:

Alignment.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r44195 r45097  
    190190        struct VMMCPU       s;
    191191#endif
    192         uint8_t             padding[640];       /* multiple of 64 */
     192        uint8_t             padding[704];       /* multiple of 64 */
    193193    } vmm;
    194194
     
    222222
    223223    /** Align the following members on page boundary. */
    224     uint8_t                 abAlignment2[1024 - 320 - 128];
     224    uint8_t                 abAlignment2[1024 - 320 - 128 - 64];
    225225
    226226    /** PGM part. */
  • trunk/include/VBox/vmm/vm.mac

    r43387 r45097  
    138138    .trpm                   resb 128
    139139    .tm                     resb 384
    140     .vmm                    resb 640
     140    .vmm                    resb 704
    141141    .pdm                    resb 128
    142142    .iom                    resb 512
  • trunk/include/VBox/vmm/vmm.h

    r45091 r45097  
    515515VMMRZDECL(void)     VMMRZCallRing3Enable(PVMCPU pVCpu);
    516516VMMRZDECL(bool)     VMMRZCallRing3IsEnabled(PVMCPU pVCpu);
    517 VMMRZDECL(int)      VMMRZCallRing3SetNotification(PVMCPU pVCpu, PFNVMMR0CALLRING3NOTIFICATION pfnCallback, void *pvUser);
     517VMMRZDECL(int)      VMMRZCallRing3SetNotification(PVMCPU pVCpu, R0PTRTYPE(PFNVMMR0CALLRING3NOTIFICATION) pfnCallback, RTR0PTR pvUser);
    518518VMMRZDECL(void)     VMMRZCallRing3RemoveNotification(PVMCPU pVCpu);
    519519/** @} */
  • trunk/src/VBox/VMM/VMMRZ/VMMRZ.cpp

    r45091 r45097  
    187187 * @return VBox status code.
    188188 */
    189 VMMRZDECL(int) VMMRZCallRing3SetNotification(PVMCPU pVCpu, PFNVMMR0CALLRING3NOTIFICATION pfnCallback, void *pvUser)
     189VMMRZDECL(int) VMMRZCallRing3SetNotification(PVMCPU pVCpu, R0PTRTYPE(PFNVMMR0CALLRING3NOTIFICATION) pfnCallback, RTR0PTR pvUser)
    190190{
    191191    AssertReturn(pVCpu, VERR_INVALID_POINTER);
  • trunk/src/VBox/VMM/include/VMMInternal.h

    r45091 r45097  
    432432    /** @} */
    433433
    434     /** Alignment padding, making sure u64CallRing3Arg is nicly aligned. */
     434    /** Alignment padding, making sure u64CallRing3Arg is nicely aligned. */
    435435    uint32_t                    au32Padding1[3];
    436436
     
    446446    /** The argument to the operation. */
    447447    uint64_t                    u64CallRing3Arg;
     448    /** The Ring-0 notification callback. */
     449    R0PTRTYPE(PFNVMMR0CALLRING3NOTIFICATION)   pfnCallRing3CallbackR0;
     450    /** The Ring-0 notification callback user argument. */
     451    R0PTRTYPE(void *)           pvCallRing3CallbackUserR0;
    448452    /** The Ring-0 jmp buffer.
    449453     * @remarks The size of this type isn't stable in assembly, so don't put
    450454     *          anything that needs to be accessed from assembly after it. */
    451455    VMMR0JMPBUF                 CallRing3JmpBufR0;
    452     /** The Ring-0 notification callback. */
    453     PFNVMMR0CALLRING3NOTIFICATION   pfnCallRing3CallbackR0;
    454     /** The Ring-0 notification callback user argument. */
    455     void                       *pvCallRing3CallbackUserR0;
    456456    /** @} */
    457457} VMMCPU;
  • trunk/src/VBox/VMM/include/VMMInternal.mac

    r45091 r45097  
    124124        .rcCallRing3            resd 1
    125125        .u64CallRing3Arg        resq 1
     126        .pfnCallRing3CallbackR0         RTR0PTR_RES 1
     127        .pvCallRing3CallbackUserR0      RTR0PTR_RES 1
    126128        ; .CallRing3JmpBufR0    resb no-can-do
    127         ; .pfnCallRing3CallbackR0
    128         ; .pvCallRing3CallbackUserR0
    129129endstruc
    130130
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