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;
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "arch/x86_64/int.hpp"
|
||||
#include "arch/x86_64/io.hpp"
|
||||
#include "types.hpp"
|
||||
#include "vga.hpp"
|
||||
|
||||
namespace x86_64 {
|
||||
|
||||
@@ -25,8 +24,6 @@ struct pit {
|
||||
|
||||
pit* pit = reinterpret_cast<decltype(pit)>(data);
|
||||
++pit->ticks;
|
||||
|
||||
vga::puts("PIT called!", 0, 5);
|
||||
}
|
||||
|
||||
volatile u64 ticks = 0;
|
||||
|
||||
Reference in New Issue
Block a user