temp
This commit is contained in:
1 parent
d36f19509c
commit
30d20457f0
309 files changed
+121746
-1963
No files matched your search
@@ -308,7 +308,8 @@ static void SerialQueueRxByte(uint8_t ch) {
|
||||
}
|
||||
|
||||
// Handles receive interrupts for COM1.
|
||||
static void SerialIsr(void) {
|
||||
static void SerialIsr(void* context) {
|
||||
(void)context;
|
||||
for (uint32_t i = 0; i < 256u; i++) {
|
||||
if ((SerialRead(SERIAL_REG_LSR) & SERIAL_LSR_DATA_READY) == 0)
|
||||
break;
|
||||
@@ -367,7 +368,10 @@ static KSTATUS SerialInitialize(NTL_MODULE* module) {
|
||||
gSerialRxTail = 0;
|
||||
gSerialRxDropped = 0;
|
||||
|
||||
KeIrqRegister(SERIAL_COM1_IRQ, SerialIsr);
|
||||
KE_INTERRUPT* serialInterrupt = (KE_INTERRUPT*)0;
|
||||
KSTATUS irqStatus = KeInterruptConnectIsa(SERIAL_COM1_IRQ, 0, 0,
|
||||
SerialIsr, 0, &serialInterrupt);
|
||||
if (!KSUCCESS(irqStatus)) return irqStatus;
|
||||
SerialWrite(SERIAL_REG_IER, SERIAL_IER_RX_READY);
|
||||
|
||||
DbgPrint("serial: initialized COM1 input device=%u irq=%u\n", deviceId, SERIAL_COM1_IRQ);
|
||||
|
||||
Reference in new issue
Block a user