|
The Pedigree Project 0.1
|
#include <DynamicLinker.h>
Inheritance diagram for DLTrapHandler:
Collaboration diagram for DLTrapHandler:Public Member Functions | |
| virtual bool | trap (InterruptState &state, uintptr_t address, bool bIsWrite, bool bWasPresent) |
Static Public Member Functions | |
| static DLTrapHandler & | instance () |
Private Member Functions | |
| DLTrapHandler () | |
| ~DLTrapHandler () | |
Static Private Attributes | |
| static DLTrapHandler | m_Instance |
Tiny class for dispatching MemoryTrap events to DynamicLinkers. A MemoryTrap event will occur when a page of an ELF has yet to be loaded.
Definition at line 136 of file DynamicLinker.h.
|
private |
Private constructor - does nothing.
Definition at line 555 of file DynamicLinker.cc.
References assert, PageFaultHandler::instance(), and PageFaultHandler::registerHandler().
|
private |
Private destructor - does nothing, not expected to be called.
Definition at line 560 of file DynamicLinker.cc.
References assert, PageFaultHandler::instance(), and PageFaultHandler::unregisterHandler().
|
inlinestatic |
Retrieve the singleton DLTrapHandler instance.
Definition at line 139 of file DynamicLinker.h.
|
virtual |
Trap event handler.
| address | The address of the trap. |
| bIsWrite | True if the trap was caused by a write, false if by a read. |
| bWasPresent | True if the processor reported a protection fault, false if the page was absent when the access occurred. |
Implements MemoryTrapHandler.
Definition at line 565 of file DynamicLinker.cc.
References ProcessorBase::information(), and DynamicLinker::trap().
|
staticprivate |
Definition at line 154 of file DynamicLinker.h.