VirtualBox

Changeset 914 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 14, 2007 11:23:08 PM (18 years ago)
Author:
vboxsync
Message:

PVMR0 changes for darwin.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pgm.h

    r861 r914  
    13821382 * @returns VBox status code.
    13831383 * @param   pVM         The virtual machine.
    1384  * @param   pvAddr      Intermediate context address of the mapping. This must be entriely below 4GB!
     1384 * @param   Addr        Intermediate context address of the mapping.
    13851385 * @param   HCPhys      Start of the range of physical pages. This must be entriely below 4GB!
    13861386 * @param   cbPages     Number of bytes to map.
     
    13881388 * @remark  This API shall not be used to anything but mapping the switcher code.
    13891389 */
    1390 PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, void *pvAddr, RTHCPHYS HCPhys, unsigned cbPages);
     1390PGMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages);
    13911391
    13921392/**
  • trunk/include/VBox/sup.h

    r335 r914  
    169169{
    170170    PCSUPGLOBALINFOPAGE pGIP;
    171     __asm__ __volatile__ ("movabs g_SUPGlobalInfoPage,%0\n\t" 
     171    __asm__ __volatile__ ("movabs g_SUPGlobalInfoPage,%0\n\t"
    172172                          : "=a" (pGIP));
    173173    return pGIP;
     
    176176# else
    177177#  define g_pSUPGlobalInfoPage         (&g_SUPGlobalInfoPage)
    178 #endif 
     178#endif
    179179#else
    180180extern DECLIMPORT(PCSUPGLOBALINFOPAGE)  g_pSUPGlobalInfoPage;
     
    251251 *
    252252 * @returns error code specific to uFunction.
    253  * @param   pVM         Pointer to the Host Context mapping of the VM structure.
     253 * @param   pVMR0       Pointer to the Ring-0 (Host Context) mapping of the VM structure.
    254254 * @param   uOperation  Operation to execute.
    255255 * @param   pvArg       Argument.
    256256 */
    257 SUPR3DECL(int) SUPCallVMMR0(PVM pVM, unsigned uOperation, void *pvArg);
     257SUPR3DECL(int) SUPCallVMMR0(PVMR0 pVMR0, unsigned uOperation, void *pvArg);
    258258
    259259/**
     
    265265 *
    266266 * @returns error code specific to uFunction.
    267  * @param   pVM         Pointer to the Host Context mapping of the VM structure.
     267 * @param   pVMR0       Pointer to the Ring-0 (Host Context) mapping of the VM structure.
    268268 * @param   uOperation  Operation to execute.
    269269 * @param   pvArg       Pointer to argument structure or if cbArg is 0 just an value.
     
    272272 *                      being invalidated while we're executing the call.
    273273 */
    274 SUPR3DECL(int) SUPCallVMMR0Ex(PVM pVM, unsigned uOperation, void *pvArg, unsigned cbArg);
     274SUPR3DECL(int) SUPCallVMMR0Ex(PVMR0 pVMR0, unsigned uOperation, void *pvArg, unsigned cbArg);
    275275
    276276/**
     
    349349 * @returns NULL on failure.
    350350 * @param   cb          Number of bytes to allocate.
    351  * @param   ppvR0       Where to store the ring-0 mapping of the allocation. (optional)
     351 * @param   pR0Ptr      Where to store the ring-0 mapping of the allocation. (optional)
    352352 * @param   pHCPhys     Where to store the physical address of the memory block.
    353353 *
     
    356356 *          the world switchers.
    357357 */
    358 SUPR3DECL(void *) SUPContAlloc2(unsigned cb, void **ppvR0, PRTHCPHYS pHCPhys);
     358SUPR3DECL(void *) SUPContAlloc2(unsigned cb, PRTR0PTR pR0Ptr, PRTHCPHYS pHCPhys);
    359359
    360360/**
     
    486486SUPR0DECL(int) SUPR0LockMem(PSUPDRVSESSION pSession, void *pvR3, unsigned cb, PSUPPAGE paPages);
    487487SUPR0DECL(int) SUPR0UnlockMem(PSUPDRVSESSION pSession, void *pvR3);
    488 SUPR0DECL(int) SUPR0ContAlloc(PSUPDRVSESSION pSession, unsigned cb, void **ppvR0, void **ppvR3, PRTHCPHYS pHCPhys);
     488SUPR0DECL(int) SUPR0ContAlloc(PSUPDRVSESSION pSession, unsigned cb, void **ppvR0, PRTR3PTR ppvR3, PRTHCPHYS pHCPhys);
    489489SUPR0DECL(int) SUPR0ContFree(PSUPDRVSESSION pSession, void *pv);
    490490SUPR0DECL(int) SUPR0LowAlloc(PSUPDRVSESSION pSession, unsigned cPages, void **ppvR3, PSUPPAGE paPages);
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