fix: interrupts

This commit is contained in:
2026-10-20 16:08:36 +02:00
parent d9a0b3652c
commit cc360c5939
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -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;
-3
View File
@@ -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;