Changeset 11894
- Timestamp:
- 09/01/08 09:56:27 (3 months ago)
- Files:
-
- trunk/include/VBox/vmm.h (modified) (2 diffs)
- trunk/src/VBox/VMM/VMM.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/VBox/vmm.h
r10843 r11894 268 268 * @param ... Arguments to the function. 269 269 */ 270 VMMR3DECL(int) VMMR3CallGC(PVM pVM, RT GCPTR GCPtrEntry, unsigned cArgs, ...);270 VMMR3DECL(int) VMMR3CallGC(PVM pVM, RTRCPTR GCPtrEntry, unsigned cArgs, ...); 271 271 272 272 /** … … 278 278 * @param args Arguments to the function. 279 279 */ 280 VMMR3DECL(int) VMMR3CallGCV(PVM pVM, RT GCPTR GCPtrEntry, unsigned cArgs, va_list args);280 VMMR3DECL(int) VMMR3CallGCV(PVM pVM, RTRCPTR GCPtrEntry, unsigned cArgs, va_list args); 281 281 282 282 /** trunk/src/VBox/VMM/VMM.cpp
r11893 r11894 694 694 CPUMPushHyper(pVM, VMMGC_DO_VMMGC_INIT); /* Param 1: Operation. */ 695 695 CPUMPushHyper(pVM, pVM->pVMGC); /* Param 0: pVM */ 696 CPUMPushHyper(pVM, 3 * sizeof(RTGCPTR ));/* trampoline param: stacksize. */696 CPUMPushHyper(pVM, 3 * sizeof(RTGCPTR32)); /* trampoline param: stacksize. */ 697 697 CPUMPushHyper(pVM, GCPtrEP); /* Call EIP. */ 698 698 CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnGCCallTrampoline); … … 2033 2033 * @param ... Arguments to the function. 2034 2034 */ 2035 VMMR3DECL(int) VMMR3CallGC(PVM pVM, RT GCPTR GCPtrEntry, unsigned cArgs, ...)2035 VMMR3DECL(int) VMMR3CallGC(PVM pVM, RTRCPTR GCPtrEntry, unsigned cArgs, ...) 2036 2036 { 2037 2037 va_list args; … … 2051 2051 * @param args Arguments to the function. 2052 2052 */ 2053 VMMR3DECL(int) VMMR3CallGCV(PVM pVM, RT GCPTR GCPtrEntry, unsigned cArgs, va_list args)2054 { 2055 Log2(("VMMR3CallGCV: GCPtrEntry=%V Gv cArgs=%d\n", GCPtrEntry, cArgs));2053 VMMR3DECL(int) VMMR3CallGCV(PVM pVM, RTRCPTR GCPtrEntry, unsigned cArgs, va_list args) 2054 { 2055 Log2(("VMMR3CallGCV: GCPtrEntry=%VRv cArgs=%d\n", GCPtrEntry, cArgs)); 2056 2056 2057 2057 /* … … 2060 2060 CPUMHyperSetCtxCore(pVM, NULL); 2061 2061 memset(pVM->vmm.s.pbHCStack, 0xaa, VMM_STACK_SIZE); /* Clear the stack. */ 2062 CPUMSetHyperESP(pVM, pVM->vmm.s.pbGCStackBottom - cArgs * sizeof(RTGCUINTPTR ));2063 PRTGCUINTPTR pFrame = (PRTGCUINTPTR)(pVM->vmm.s.pbHCStack + VMM_STACK_SIZE) - cArgs;2062 CPUMSetHyperESP(pVM, pVM->vmm.s.pbGCStackBottom - cArgs * sizeof(RTGCUINTPTR32)); 2063 PRTGCUINTPTR32 pFrame = (PRTGCUINTPTR32)(pVM->vmm.s.pbHCStack + VMM_STACK_SIZE) - cArgs; 2064 2064 int i = cArgs; 2065 2065 while (i-- > 0) 2066 *pFrame++ = va_arg(args, RTGCUINTPTR );2067 2068 CPUMPushHyper(pVM, cArgs * sizeof(RTGCUINTPTR )); /* stack frame size */2066 *pFrame++ = va_arg(args, RTGCUINTPTR32); 2067 2068 CPUMPushHyper(pVM, cArgs * sizeof(RTGCUINTPTR32)); /* stack frame size */ 2069 2069 CPUMPushHyper(pVM, GCPtrEntry); /* what to call */ 2070 2070 CPUMSetHyperEIP(pVM, pVM->vmm.s.pfnGCCallTrampoline);

