mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-24 11:10:40 +00:00
Fixed a bug in the interrupt handler in part13 to avoid an infinite loop
This commit is contained in:
parent
753489b857
commit
3faf8d10ff
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ void disable_interrupt_controller() {
|
|||
void handle_irq() {
|
||||
unsigned int irq = REGS_IRQ->irq0_pending_0;
|
||||
|
||||
while(irq) {
|
||||
while(irq & (SYS_TIMER_IRQ_1 | SYS_TIMER_IRQ_3)) {
|
||||
if (irq & SYS_TIMER_IRQ_1) {
|
||||
irq &= ~SYS_TIMER_IRQ_1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue