Call enable_interrupts when initialising IRQs (#2491)

* Call enable_interrupts when initialising IRQs

Fixes raspberrypi/pico-examples#584, supercedes raspberrypi/pico-examples#588

* move enable_interrupts to the end though it doesn't make much difference

* guard enable_interrupts by !RP2040 as it isn't needed there

---------

Co-authored-by: Graham Sanderson <graham.sanderson@raspberrypi.com>
This commit is contained in:
will-v-pi 2025-05-30 14:33:04 +01:00 committed by GitHub
parent 67f89e44aa
commit 6860f0d882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -680,6 +680,10 @@ __weak void runtime_init_per_core_irq_priorities(void) {
}
#endif
#endif
#if !PICO_RP2040
// enable interrupts that might be disabled by a previous bootloader stage (guarded for RP2040 as there is no bootrom chain_image call there)
enable_interrupts();
#endif
}
static uint get_user_irq_claim_index(uint irq_num) {