Changeset 11894 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 1, 2008 7:56:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.