mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-21 17:50:40 +00:00
Added irq_barrier to part13-interrupts just to be sure
This commit is contained in:
parent
3faf8d10ff
commit
9566e13a7f
3 changed files with 7 additions and 0 deletions
|
@ -120,6 +120,7 @@ void main(void)
|
||||||
|
|
||||||
irq_init_vectors();
|
irq_init_vectors();
|
||||||
enable_interrupt_controller();
|
enable_interrupt_controller();
|
||||||
|
irq_barrier();
|
||||||
irq_enable();
|
irq_enable();
|
||||||
timer_init();
|
timer_init();
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ enum vc_irqs {
|
||||||
|
|
||||||
void irq_init_vectors();
|
void irq_init_vectors();
|
||||||
void irq_enable();
|
void irq_enable();
|
||||||
|
void irq_barrier();
|
||||||
void irq_disable();
|
void irq_disable();
|
||||||
void enable_interrupt_controller();
|
void enable_interrupt_controller();
|
||||||
void disable_interrupt_controller();
|
void disable_interrupt_controller();
|
||||||
|
|
|
@ -13,3 +13,8 @@ irq_enable:
|
||||||
irq_disable:
|
irq_disable:
|
||||||
msr daifset, #2
|
msr daifset, #2
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.globl irq_barrier
|
||||||
|
irq_barrier:
|
||||||
|
dsb sy
|
||||||
|
ret
|
||||||
|
|
Loading…
Reference in a new issue