git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edit readme
[lunaix-os.git]
/
lunaix-os
/
hal
/
ioapic.c
diff --git
a/lunaix-os/hal/ioapic.c
b/lunaix-os/hal/ioapic.c
index 80ab13bf6d76af9f5d4b88dd9e521f794db20be3..3ca3dee854047cbdd3a2ecc9d02fe01bb4029b5a 100644
(file)
--- a/
lunaix-os/hal/ioapic.c
+++ b/
lunaix-os/hal/ioapic.c
@@
-22,8
+22,11
@@
ioapic_init() {
// The ioapic_get_irq is to make sure we capture those overriden IRQs
// The ioapic_get_irq is to make sure we capture those overriden IRQs
+ // grab ourselves these irq numbers
+ uint8_t irq_rtc = ioapic_get_irq(acpi_ctx, PC_AT_IRQ_RTC);
+
// PC_AT_IRQ_RTC -> RTC_TIMER_IV, fixed, edge trigged, polarity=high, physical, APIC ID 0
// PC_AT_IRQ_RTC -> RTC_TIMER_IV, fixed, edge trigged, polarity=high, physical, APIC ID 0
- ioapic_redirect(i
oapic_get_irq(acpi_ctx, PC_AT_IRQ_RTC)
, RTC_TIMER_IV, 0, IOAPIC_DELMOD_FIXED);
+ ioapic_redirect(i
rq_rtc
, RTC_TIMER_IV, 0, IOAPIC_DELMOD_FIXED);
}
uint8_t
}
uint8_t