mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
parent
bb5b5f96e2
commit
472c781a31
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ void runtime_init_install_ram_vector_table(void) {
|
||||||
#if !(PICO_NO_RAM_VECTOR_TABLE || PICO_NO_FLASH)
|
#if !(PICO_NO_RAM_VECTOR_TABLE || PICO_NO_FLASH)
|
||||||
extern uint32_t __vectors;
|
extern uint32_t __vectors;
|
||||||
extern uint32_t __vectors_end;
|
extern uint32_t __vectors_end;
|
||||||
uint32_t stored_words = &__vectors_end - &__vectors;
|
uint32_t stored_words = (uint32_t)(&__vectors_end - &__vectors);
|
||||||
__builtin_memcpy(ram_vector_table, &__vectors, 4 * MIN(stored_words, PICO_RAM_VECTOR_TABLE_SIZE));
|
__builtin_memcpy(ram_vector_table, &__vectors, 4 * MIN(stored_words, PICO_RAM_VECTOR_TABLE_SIZE));
|
||||||
for(uint i = stored_words; i<count_of(ram_vector_table); i++) {
|
for(uint i = stored_words; i<count_of(ram_vector_table); i++) {
|
||||||
ram_vector_table[i] = (uintptr_t)__unhandled_user_irq;
|
ram_vector_table[i] = (uintptr_t)__unhandled_user_irq;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue