The Pedigree Project 0.1
Public Member Functions | List of all members
MemoryTrapHandler Class Referenceabstract
+ Inheritance diagram for MemoryTrapHandler:
+ Collaboration diagram for MemoryTrapHandler:

Public Member Functions

virtual bool trap (InterruptState &state, uintptr_t address, bool bIsWrite, bool bWasPresent)=0
 

Detailed Description

Definition at line 37 of file PageFaultHandler.h.

Member Function Documentation

◆ trap()

virtual bool MemoryTrapHandler::trap ( InterruptState &  state,
uintptr_t  address,
bool  bIsWrite,
bool  bWasPresent 
)
pure virtual

Trap event handler.

Parameters
addressThe address of the trap.
bIsWriteTrue if the trap was caused by a write, false if by a read.
bWasPresentTrue if the processor reported a protection fault, false if the page was absent when the access occurred.
Returns
True if the trap was handled successfully (and the handler can return), or false if another handler needs to be tried.

Implemented in DLTrapHandler, and MemoryMapManager.


The documentation for this class was generated from the following files: