Added irq_barrier to part13-interrupts just to be sure

This commit is contained in:
babbleberry 2024-02-06 12:01:39 +00:00
parent 3faf8d10ff
commit 9566e13a7f
3 changed files with 7 additions and 0 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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