Add method to post an interrupt in software
This commit is contained in:
parent
cf8047f7be
commit
1f6ce53e08
2 changed files with 10 additions and 0 deletions
|
@ -79,6 +79,14 @@ InterruptHandler::disableInterrupts()
|
|||
asm("cli");
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
InterruptHandler::postInterrupt(uint8_t interrupt)
|
||||
const
|
||||
{
|
||||
asm("int %0": : "a"(interrupt));
|
||||
}
|
||||
|
||||
} /* namespace x86 */
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue