mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[kernel] Let endpoints get interrupt notifications
- Add a tag field to all endpoint messages, which doubles as a notification field - Add a endpoint_bind_irq syscall to enable an endpoint to listen for interrupt notifications. This mechanism needs to change. - Add a temporary copy of the serial port code to nulldrv, and let it take responsibility for COM2
This commit is contained in:
@@ -84,13 +84,6 @@ disable_legacy_pic()
|
||||
outb(PIC2+1, 0x02); io_wait();
|
||||
}
|
||||
|
||||
static void
|
||||
enable_serial_interrupts()
|
||||
{
|
||||
uint8_t ier = inb(COM1+1);
|
||||
outb(COM1+1, ier | 0x1);
|
||||
}
|
||||
|
||||
void
|
||||
interrupts_init()
|
||||
{
|
||||
@@ -105,7 +98,6 @@ interrupts_init()
|
||||
#undef ISR
|
||||
|
||||
disable_legacy_pic();
|
||||
enable_serial_interrupts();
|
||||
|
||||
log::info(logs::boot, "Interrupts enabled.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user