Changeset 13813 in vbox for trunk/src/VBox/VMM/testcase/tstMicro.cpp
- Timestamp:
- Nov 4, 2008 9:55:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstMicro.cpp
r13782 r13813 209 209 return rc; 210 210 } 211 RT GCPTR32 GCPtrEntry;212 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGC", & GCPtrEntry);211 RTRCPTR RCPtrEntry; 212 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGC", &RCPtrEntry); 213 213 if (VBOX_FAILURE(rc)) 214 214 { … … 216 216 return rc; 217 217 } 218 RT GCPTR32 GCPtrStart;219 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmStart", & GCPtrStart);218 RTRCPTR RCPtrStart; 219 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmStart", &RCPtrStart); 220 220 if (VBOX_FAILURE(rc)) 221 221 { … … 223 223 return rc; 224 224 } 225 RT GCPTR32 GCPtrEnd;226 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmEnd", & GCPtrEnd);225 RTRCPTR RCPtrEnd; 226 rc = PDMR3LdrGetSymbolRC(pVM, "tstMicroGC.gc", "tstMicroGCAsmEnd", &RCPtrEnd); 227 227 if (VBOX_FAILURE(rc)) 228 228 { … … 241 241 return rc; 242 242 } 243 pTst-> GCPtr = MMHyperHC2GC(pVM, pTst);244 pTst-> GCPtrStack = MMHyperHC2GC(pVM, &pTst->au8Stack[sizeof(pTst->au8Stack) - 32]);243 pTst->RCPtr = MMHyperR3ToRC(pVM, pTst); 244 pTst->RCPtrStack = MMHyperR3ToRC(pVM, &pTst->au8Stack[sizeof(pTst->au8Stack) - 32]); 245 245 246 246 /* the page must be writable from user mode */ 247 rc = PGMMapModifyPage(pVM, pTst-> GCPtr, sizeof(*pTst), X86_PTE_US | X86_PTE_RW, ~(uint64_t)(X86_PTE_US | X86_PTE_RW));247 rc = PGMMapModifyPage(pVM, pTst->RCPtr, sizeof(*pTst), X86_PTE_US | X86_PTE_RW, ~(uint64_t)(X86_PTE_US | X86_PTE_RW)); 248 248 if (VBOX_FAILURE(rc)) 249 249 { … … 253 253 254 254 /* all the code must be executable from R3. */ 255 rc = PGMMapModifyPage(pVM, GCPtrStart, GCPtrEnd - GCPtrStart + PAGE_SIZE, X86_PTE_US, ~(uint64_t)X86_PTE_US);255 rc = PGMMapModifyPage(pVM, RCPtrStart, RCPtrEnd - RCPtrStart + PAGE_SIZE, X86_PTE_US, ~(uint64_t)X86_PTE_US); 256 256 if (VBOX_FAILURE(rc)) 257 257 { … … 265 265 * Disassemble the assembly... 266 266 */ 267 RTGCPTR GCPtr = GCPtrStart;268 while (GCPtr < GCPtrEnd)267 RTGCPTR GCPtr = RCPtrStart; 268 while (GCPtr < RCPtrEnd) 269 269 { 270 270 size_t cb = 0; … … 298 298 for (int c = 0; c < 100; c++) 299 299 { 300 int rc2 = VMMR3Call GC(pVM, GCPtrEntry, 2, pTst->GCPtr, enmTest);300 int rc2 = VMMR3CallRC(pVM, RCPtrEntry, 2, pTst->RCPtr, enmTest); 301 301 if (VBOX_SUCCESS(rc2)) 302 302 { … … 327 327 { 328 328 TSTMICROTEST enmTest = (TSTMICROTEST)i; 329 rc = VMMR3Call GC(pVM, GCPtrEntry, 2, pTst->GCPtr, enmTest);329 rc = VMMR3CallRC(pVM, RCPtrEntry, 2, pTst->RCPtr, enmTest); 330 330 PrintResultTrap(pTst, enmTest, rc); 331 331 }
Note:
See TracChangeset
for help on using the changeset viewer.