|
The Pedigree Project
0.1
|
#include <InterruptManager.h>
Inheritance diagram for X64InterruptManager:
Collaboration diagram for X64InterruptManager:Classes | |
| struct | GateDescriptor |
Public Member Functions | |
| virtual bool | registerInterruptHandler (size_t nInterruptNumber, InterruptHandler *pHandler) |
| virtual bool | registerInterruptHandlerDebugger (size_t nInterruptNumber, InterruptHandler *pHandler) |
| virtual size_t | getBreakpointInterruptNumber () PURE |
| virtual size_t | getDebugInterruptNumber () PURE |
Static Public Member Functions | |
| static X64InterruptManager & | instance () |
| static void | initialiseProcessor () INITIALISATION_ONLY |
Static Public Member Functions inherited from InterruptManager | |
| static InterruptManager & | instance () |
Private Member Functions | |
| void | setInterruptGate (size_t nInterruptNumber, uintptr_t interruptHandler) INITIALISATION_ONLY |
| void | setIst (size_t nInterruptNumber, size_t ist) |
| X64InterruptManager () INITIALISATION_ONLY | |
| X64InterruptManager (const X64InterruptManager &) | |
| X64InterruptManager & | operator= (const X64InterruptManager &) |
| virtual | ~X64InterruptManager () |
Static Private Member Functions | |
| static void | interrupt (InterruptState &interruptState) USED |
Private Attributes | |
| struct X64InterruptManager::GateDescriptor | PACKED |
| Spinlock | m_Lock |
| GateDescriptor | m_IDT [256] |
| InterruptHandler * | m_pHandler [256] |
| InterruptHandler * | m_pDbgHandler [256] |
Static Private Attributes | |
| static X64InterruptManager | m_Instance |
Friends | |
| class | Processor |
Additional Inherited Members | |
Protected Member Functions inherited from InterruptManager | |
| InterruptManager () | |
| virtual | ~InterruptManager () |
The interrupt manager on x64 processors
Definition at line 35 of file kernel/core/processor/x64/InterruptManager.h.
|
private |
The constructor
Definition at line 328 of file x64/InterruptManager.cc.
References m_pDbgHandler, m_pHandler, setInterruptGate(), and setIst().
Referenced by instance().
Here is the caller graph for this function:
|
private |
Copy constructor
|
privatevirtual |
The destructor
Definition at line 347 of file x64/InterruptManager.cc.
Referenced by instance().
Here is the caller graph for this function:
|
virtual |
Get the interrupt number of the breakpoint exception
Implements InterruptManager.
Definition at line 123 of file x64/InterruptManager.cc.
Referenced by instance().
Here is the caller graph for this function:
|
virtual |
Get the interrupt number of the debug exception
Implements InterruptManager.
Definition at line 127 of file x64/InterruptManager.cc.
Referenced by instance().
Here is the caller graph for this function:
|
static |
Initialises this processors IDTR
Definition at line 297 of file x64/InterruptManager.cc.
References PACKED.
Referenced by instance().
Here is the caller graph for this function:
|
inlinestatic |
Get the X64InterruptManager class instance
Definition at line 42 of file kernel/core/processor/x64/InterruptManager.h.
References getBreakpointInterruptNumber(), getDebugInterruptNumber(), INITIALISATION_ONLY, initialiseProcessor(), interrupt(), m_Instance, operator=(), PURE, registerInterruptHandler(), registerInterruptHandlerDebugger(), setInterruptGate(), setIst(), USED, X64InterruptManager(), and ~X64InterruptManager().
|
staticprivate |
Called when an interrupt was triggered
| [in] | interruptState | reference to the usermode/kernel state before the interrupt |
Definition at line 134 of file x64/InterruptManager.cc.
References ERROR, Process::getId(), Thread::getId(), Thread::getParent(), Hex, Processor::id(), Processor::information(), Debugger::instance(), InterruptHandler::interrupt(), LIKELY, panic(), Debugger::start(), Subsystem::threadException(), and UNLIKELY.
Referenced by instance().
Here is the caller graph for this function:
|
private |
Assignment operator
Referenced by instance().
Here is the caller graph for this function:
|
virtual |
Register an interrupt handler
| [in] | nInterruptNumber | the interrupt's number |
| [in] | pHandler | the interrupt handler |
Implements InterruptManager.
Definition at line 82 of file x64/InterruptManager.cc.
References UNLIKELY.
Referenced by instance().
Here is the caller graph for this function:
|
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 104 of file x64/InterruptManager.cc.
References UNLIKELY.
Referenced by instance().
Here is the caller graph for this function:
|
private |
Sets up an interrupt gate
| [in] | interruptNumber | the interrupt number |
| [in] | interruptHandler | address of the assembler interrupt handler stub |
Definition at line 309 of file x64/InterruptManager.cc.
Referenced by instance(), and X64InterruptManager().
Here is the caller graph for this function:
|
private |
Sets the IST field for a given interrupt gate
| [in] | interruptNumber | the interrupt number |
| [in] | ist | IST index to use |
Definition at line 321 of file x64/InterruptManager.cc.
Referenced by instance(), and X64InterruptManager().
Here is the caller graph for this function:
|
private |
The interrupt descriptor table (IDT)
Definition at line 113 of file kernel/core/processor/x64/InterruptManager.h.
|
staticprivate |
The instance of the interrupt manager
Definition at line 122 of file kernel/core/processor/x64/InterruptManager.h.
Referenced by instance().
|
private |
Spinlock protecting the member variables
Definition at line 110 of file kernel/core/processor/x64/InterruptManager.h.
|
private |
The debugger interrupt handlers
Definition at line 118 of file kernel/core/processor/x64/InterruptManager.h.
Referenced by X64InterruptManager().
|
private |
The normal interrupt handlers
Definition at line 115 of file kernel/core/processor/x64/InterruptManager.h.
Referenced by X64InterruptManager().
1.8.11