VirtualBox

Changeset 27899 in vbox


Ignore:
Timestamp:
Mar 31, 2010 2:05:23 PM (14 years ago)
Author:
vboxsync
Message:

PGMAllPhys.cpp: Restored pgmPhysHandlerRedirectToHC which got accidentally removed in r59107.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r27595 r27899  
    5353
    5454#ifndef IN_RING3
     55
     56/**
     57 * \#PF Handler callback for physical memory accesses without a RC/R0 handler.
     58 * This simply pushes everything to the HC handler.
     59 *
     60 * @returns VBox status code (appropritate for trap handling and GC return).
     61 * @param   pVM         VM Handle.
     62 * @param   uErrorCode  CPU Error code.
     63 * @param   pRegFrame   Trap register frame.
     64 * @param   pvFault     The fault address (cr2).
     65 * @param   GCPhysFault The GC physical address corresponding to pvFault.
     66 * @param   pvUser      User argument.
     67 */
     68VMMDECL(int) pgmPhysHandlerRedirectToHC(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser)
     69{
     70    return (uErrorCode & X86_TRAP_PF_RW) ? VINF_IOM_HC_MMIO_WRITE : VINF_IOM_HC_MMIO_READ;
     71}
     72
    5573
    5674/**
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