forked from CHatingPython/towos
fix: interrupts
This commit is contained in:
@@ -22,7 +22,7 @@ irq_manager::irq_manager(vm& vm)
|
||||
}
|
||||
|
||||
irq_t irq_manager::allocate() {
|
||||
auto* entry = at(m_count + 1);
|
||||
auto* entry = at(m_count);
|
||||
if (entry == nullptr) {
|
||||
page* newPage = m_vm->allocate<page>();
|
||||
if (newPage == nullptr) return INVALID_IRQ;
|
||||
|
||||
Reference in New Issue
Block a user