VirtualBox

Changeset 55896 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
May 17, 2015 8:20:30 PM (10 years ago)
Author:
vboxsync
Message:

PGM: Renamed the ring-0 and raw-mode context physical page access handler callbacks to 'PfHandler' to indicate that these are for page-fault callbacks. Will add non-PF handlers similar to the ring-3 one later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r55838 r55896  
    35243524
    35253525
    3526 #ifdef IN_RC
     3526#ifndef IN_RING3
     3527RT_C_DECLS_BEGIN
     3528DECLEXPORT(CTX_MID(FNPGM,PHYSPFHANDLER)) vgaLbfAccessPfHandler;
     3529RT_C_DECLS_END
     3530
    35273531/**
    35283532 * @callback_method_impl{FNPGMRCPHYSHANDLER, \#PF Handler for VBE LFB access.}
    35293533 */
    3530 PDMBOTHCBDECL(int) vgaRCLFBAccessHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser)
     3534PDMBOTHCBDECL(int) vgaLbfAccessPfHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault,
     3535                                         RTGCPHYS GCPhysFault, void *pvUser)
    35313536{
    35323537    PVGASTATE   pThis = (PVGASTATE)pvUser;
    35333538    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_RING0
    3542 
    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);
    35503539    Assert(GCPhysFault >= pThis->GCPhysVRAM);
    35513540    AssertMsg(uErrorCode & X86_TRAP_PF_RW, ("uErrorCode=%#x\n", uErrorCode));
     
    62206209    rc = PGMR3HandlerPhysicalTypeRegister(pVM, PGMPHYSHANDLERKIND_WRITE,
    62216210                                          vgaR3LFBAccessHandler,
    6222                                           g_DeviceVga.szR0Mod, "vgaR0LFBAccessHandler",
    6223                                           g_DeviceVga.szRCMod, "vgaRCLFBAccessHandler",
     6211                                          g_DeviceVga.szR0Mod, "vgaLbfAccessPfHandler",
     6212                                          g_DeviceVga.szRCMod, "vgaLbfAccessPfHandler",
    62246213                                          "VGA LFB", &pThis->hLfbAccessHandlerType);
    62256214    AssertRCReturn(rc, rc);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette