Kernel: Fix fallback PS/2 interrupt numbers

I haven't used the fallbacks in so long that I didn't realize they were
wrong :D
This commit is contained in:
2026-07-13 06:57:58 +03:00
parent 20e36125c8
commit 51251e492e

View File

@@ -435,14 +435,14 @@ namespace Kernel::Input
devices[0] = { devices[0] = {
.type = acpi_devices[0].type, .type = acpi_devices[0].type,
.interrupt = acpi_devices[0].irq.value_or(PS2::INTERRUPT_FIRST_PORT) .interrupt = acpi_devices[0].irq.value_or(PS2::IRQ::DEVICE0)
}; };
if (acpi_devices.size() > 1) if (acpi_devices.size() > 1)
{ {
devices[1] = { devices[1] = {
.type = acpi_devices[1].type, .type = acpi_devices[1].type,
.interrupt = acpi_devices[1].irq.value_or(PS2::INTERRUPT_SECOND_PORT) .interrupt = acpi_devices[1].irq.value_or(PS2::IRQ::DEVICE1)
}; };
} }
} }
@@ -450,11 +450,11 @@ namespace Kernel::Input
{ {
devices[0] = { devices[0] = {
.type = DeviceType::Unknown, .type = DeviceType::Unknown,
.interrupt = PS2::INTERRUPT_FIRST_PORT, .interrupt = PS2::IRQ::DEVICE0,
}; };
devices[1] = { devices[1] = {
.type = DeviceType::Unknown, .type = DeviceType::Unknown,
.interrupt = PS2::INTERRUPT_SECOND_PORT, .interrupt = PS2::IRQ::DEVICE1,
}; };
} }
else else