Changeset 55896 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- May 17, 2015 8:20:30 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r55838 r55896 3524 3524 3525 3525 3526 #ifdef IN_RC 3526 #ifndef IN_RING3 3527 RT_C_DECLS_BEGIN 3528 DECLEXPORT(CTX_MID(FNPGM,PHYSPFHANDLER)) vgaLbfAccessPfHandler; 3529 RT_C_DECLS_END 3530 3527 3531 /** 3528 3532 * @callback_method_impl{FNPGMRCPHYSHANDLER, \#PF Handler for VBE LFB access.} 3529 3533 */ 3530 PDMBOTHCBDECL(int) vgaRCLFBAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser) 3534 PDMBOTHCBDECL(int) vgaLbfAccessPfHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, 3535 RTGCPHYS GCPhysFault, void *pvUser) 3531 3536 { 3532 3537 PVGASTATE pThis = (PVGASTATE)pvUser; 3533 3538 AssertPtr(pThis); 3534 Assert(GCPhysFault >= pThis->GCPhysVRAM);3535 AssertMsg(uErrorCode & X86_TRAP_PF_RW, ("uErrorCode=%#x\n", uErrorCode));3536 NOREF(pRegFrame);3537 3538 return vgaLFBAccess(pVM, pThis, GCPhysFault, pvFault);3539 }3540 3541 #elif IN_RING03542 3543 /**3544 * @callback_method_impl{FNPGMR0PHYSHANDLER, \#PF Handler for VBE LFB access.}3545 */3546 PDMBOTHCBDECL(int) vgaR0LFBAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser)3547 {3548 PVGASTATE pThis = (PVGASTATE)pvUser;3549 Assert(pThis);3550 3539 Assert(GCPhysFault >= pThis->GCPhysVRAM); 3551 3540 AssertMsg(uErrorCode & X86_TRAP_PF_RW, ("uErrorCode=%#x\n", uErrorCode)); … … 6220 6209 rc = PGMR3HandlerPhysicalTypeRegister(pVM, PGMPHYSHANDLERKIND_WRITE, 6221 6210 vgaR3LFBAccessHandler, 6222 g_DeviceVga.szR0Mod, "vga R0LFBAccessHandler",6223 g_DeviceVga.szRCMod, "vga RCLFBAccessHandler",6211 g_DeviceVga.szR0Mod, "vgaLbfAccessPfHandler", 6212 g_DeviceVga.szRCMod, "vgaLbfAccessPfHandler", 6224 6213 "VGA LFB", &pThis->hLfbAccessHandlerType); 6225 6214 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.