mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
ps2mouse: remove non fatal assert
This commit is contained in:
@@ -100,7 +100,11 @@ void ps2mouse_init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mouse_setrate(2, 60);
|
mouse_setrate(2, 60);
|
||||||
__assert(device_write_response(2, MOUSE_CMD_REPORTDATA) == ACK);
|
int response = device_write_response(2, MOUSE_CMD_REPORTDATA);
|
||||||
|
if (response != ACK) {
|
||||||
|
printf("ps2mouse: expected ACK, got %x\n", response);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
isr_t *isr = interrupt_allocate(mouseisr, arch_apic_eoi, IPL_MOUSE);
|
isr_t *isr = interrupt_allocate(mouseisr, arch_apic_eoi, IPL_MOUSE);
|
||||||
__assert(isr);
|
__assert(isr);
|
||||||
|
|||||||
Reference in New Issue
Block a user