The Pedigree Project
0.1
|
#include <InterruptManager.h>
Public Member Functions | |
virtual bool | registerInterruptHandler (size_t interruptNumber, InterruptHandler *handler) |
virtual bool | registerInterruptHandlerDebugger (size_t interruptNumber, InterruptHandler *handler) |
virtual size_t | getBreakpointInterruptNumber () PURE |
virtual size_t | getDebugInterruptNumber () PURE |
virtual bool | registerSyscallHandler (Service_t Service, SyscallHandler *handler) |
virtual uintptr_t | syscall (Service_t service, uintptr_t function, uintptr_t p1=0, uintptr_t p2=0, uintptr_t p3=0, uintptr_t p4=0, uintptr_t p5=0) |
Static Public Member Functions | |
static ARM926EInterruptManager & | instance () |
static void | initialiseProcessor () |
Static Public Member Functions inherited from InterruptManager | |
static InterruptManager & | instance () |
Static Public Member Functions inherited from SyscallManager | |
static EXPORTED_PUBLIC SyscallManager & | instance () |
Private Member Functions | |
ARM926EInterruptManager () | |
ARM926EInterruptManager (const ARM926EInterruptManager &) | |
ARM926EInterruptManager & | operator= (const ARM926EInterruptManager &) |
virtual | ~ARM926EInterruptManager () |
Static Private Member Functions | |
static void | interrupt (InterruptState &interruptState) |
Private Attributes | |
InterruptHandler * | m_Handler [256] |
InterruptHandler * | m_DbgHandler [256] |
SyscallHandler * | m_SyscallHandler [serviceEnd] |
Static Private Attributes | |
static ARM926EInterruptManager | m_Instance |
Additional Inherited Members | |
Protected Member Functions inherited from InterruptManager | |
InterruptManager () | |
virtual | ~InterruptManager () |
Protected Member Functions inherited from SyscallManager | |
SyscallManager () | |
virtual | ~SyscallManager () |
The interrupt handler on mips32 processors
Definition at line 32 of file kernel/core/processor/arm_926e/InterruptManager.h.
|
private |
The constructor
Definition at line 204 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
private |
Copy constructor
|
privatevirtual |
The destructor
Definition at line 219 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
virtual |
Get the interrupt number of the breakpoint exception
Implements InterruptManager.
Definition at line 110 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
virtual |
Get the interrupt number of the debug exception
Implements InterruptManager.
Definition at line 114 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
static |
Initialises this processors IDTR
Definition at line 146 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
inlinestatic |
Get the ARM926EInterruptManager class instance
Definition at line 38 of file kernel/core/processor/arm_926e/InterruptManager.h.
References ARM926EInterruptManager(), getBreakpointInterruptNumber(), getDebugInterruptNumber(), initialiseProcessor(), interrupt(), m_Instance, operator=(), PURE, registerInterruptHandler(), registerInterruptHandlerDebugger(), registerSyscallHandler(), syscall(), and ~ARM926EInterruptManager().
Referenced by SyscallManager::instance(), and InterruptManager::instance().
|
staticprivate |
Called when an interrupt was triggered
[in] | interruptState | reference to the usermode/kernel state before the interrupt |
Definition at line 151 of file arm_926e/InterruptManager.cc.
References Debugger::instance(), LIKELY, panic(), and Debugger::start().
Referenced by instance().
|
private |
Assignment operator
Referenced by instance().
|
virtual |
Register an interrupt handler
[in] | nInterruptNumber | the interrupt's number |
[in] | pHandler | the interrupt handler |
Implements InterruptManager.
Definition at line 79 of file arm_926e/InterruptManager.cc.
References UNLIKELY.
Referenced by instance().
|
virtual |
Register an interrupt handler (for the kernel debugger)
[in] | nInterruptNumber | the interrupt's number |
[in] | pHandler | the interrupt handler |
Implements InterruptManager.
Definition at line 96 of file arm_926e/InterruptManager.cc.
References UNLIKELY.
Referenced by instance().
|
virtual |
Register a syscall handler
[in] | Service | the service number you want to register |
[in] | pHandler | the interrupt handler |
Implements SyscallManager.
Definition at line 121 of file arm_926e/InterruptManager.cc.
References UNLIKELY.
Referenced by instance().
|
virtual |
Calls a syscall.
Implements SyscallManager.
Definition at line 137 of file arm_926e/InterruptManager.cc.
Referenced by instance().
|
private |
The debugger interrupt handlers
Definition at line 86 of file kernel/core/processor/arm_926e/InterruptManager.h.
|
staticprivate |
The instance of the interrupt manager
Definition at line 92 of file kernel/core/processor/arm_926e/InterruptManager.h.
Referenced by instance().
|
private |
The syscall handlers
Definition at line 89 of file kernel/core/processor/arm_926e/InterruptManager.h.