Changeset 11150 in vbox for trunk/include
- Timestamp:
- Aug 5, 2008 10:32:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/mm.h
r9212 r11150 213 213 214 214 MMDECL(RTR3PTR) MMHyperR0ToR3(PVM pVM, RTR0PTR R0Ptr); 215 MMDECL(RTGCPTR) MMHyperR0ToGC(PVM pVM, RTR0PTR R0Ptr); 215 MMDECL(RTRCPTR) MMHyperR0ToRC(PVM pVM, RTR0PTR R0Ptr); 216 #define MMHyperR0ToGC(pVM, pv) MMHyperR0ToRC(pVM, pv) /**< @deprecated */ 216 217 #ifndef IN_RING0 217 218 MMDECL(void *) MMHyperR0ToCC(PVM pVM, RTR0PTR R0Ptr); 218 219 #endif 219 220 MMDECL(RTR0PTR) MMHyperR3ToR0(PVM pVM, RTR3PTR R3Ptr); 220 MMDECL(RTGCPTR) MMHyperR3ToGC(PVM pVM, RTR3PTR R3Ptr); 221 MMDECL(RTR3PTR) MMHyperGCToR3(PVM pVM, RTGCPTR GCPtr); 222 MMDECL(RTR0PTR) MMHyperGCToR0(PVM pVM, RTGCPTR GCPtr); 221 MMDECL(RTRCPTR) MMHyperR3ToRC(PVM pVM, RTR3PTR R3Ptr); 222 #define MMHyperR3ToGC(pVM, R3Ptr) MMHyperR3ToRC(pVM, R3Ptr) /**< @deprecated */ 223 MMDECL(RTR3PTR) MMHyperRCToR3(PVM pVM, RTRCPTR RCPtr); 224 #define MMHyperGCToR3(pVM, RCPtr) MMHyperRCToR3(pVM, RCPtr) /**< @deprecated */ 225 MMDECL(RTR0PTR) MMHyperRCToR0(PVM pVM, RTRCPTR RCPtr); 226 #define MMHyperGCToR0(pVM, RCPtr) MMHyperRCToR0(pVM, RCPtr) /**< @deprecated */ 223 227 224 228 #ifndef IN_RING3 … … 234 238 235 239 #ifndef IN_GC 236 MMDECL(void *) MMHyperGCToCC(PVM pVM, RTGCPTR GCPtr); 237 #else 238 DECLINLINE(void *) MMHyperGCToCC(PVM pVM, RTGCPTR GCPtr) 239 { 240 NOREF(pVM); 241 return (void *)GCPtr; 242 } 243 #endif 240 MMDECL(void *) MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr); 241 #else 242 DECLINLINE(void *) MMHyperRCToCC(PVM pVM, RTRCPTR RCPtr) 243 { 244 NOREF(pVM); 245 return (void *)RCPtr; 246 } 247 #endif 248 #define MMHyperGCToCC(pVM, RCPtr) MMHyperRCToCC(pVM, RCPtr) 244 249 245 250 #ifndef IN_RING3 … … 284 289 #endif 285 290 286 #ifndef IN_GC287 MMDECL(RCPTRTYPE(void *)) MMHyper2GC(PVM pVM, uintptr_t Ptr);288 #else289 DECLINLINE(RCPTRTYPE(void *)) MMHyper2GC(PVM pVM, uintptr_t Ptr)290 {291 NOREF(pVM);292 return (RCPTRTYPE(void *))Ptr;293 }294 #endif295 291 296 292 MMDECL(RCPTRTYPE(void *)) MMHyperHC2GC(PVM pVM, RTHCPTR HCPtr);
Note:
See TracChangeset
for help on using the changeset viewer.