diff options
author | Bunnaroath Sou <bsou@sifive.com> | 2019-03-21 18:04:29 -0700 |
---|---|---|
committer | Bunnaroath Sou <bsou@sifive.com> | 2019-03-21 18:04:29 -0700 |
commit | 66901a72d41fb1f350e1d972b5b920c6d61b33a1 (patch) | |
tree | df8bd771d4d765ceedfa9875cd822e4eea4a4db9 /bsp/sifive-hifive1 | |
parent | 318ac16f2b0fdab7ac82758993e7e6835b94115d (diff) |
Update lds files to exclude itim in .text and PLIC subinterrupts
Diffstat (limited to 'bsp/sifive-hifive1')
-rw-r--r-- | bsp/sifive-hifive1/metal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bsp/sifive-hifive1/metal.h b/bsp/sifive-hifive1/metal.h index 0f30503..d173b8e 100644 --- a/bsp/sifive-hifive1/metal.h +++ b/bsp/sifive-hifive1/metal.h @@ -5,6 +5,11 @@ #ifdef __METAL_MACHINE_MACROS +#define __METAL_PLIC_SUBINTERRUPTS 27 + +#ifndef __METAL_PLIC_SUBINTERRUPTS +#define __METAL_PLIC_SUBINTERRUPTS 0 +#endif #ifndef __METAL_CLIC_SUBINTERRUPTS #define __METAL_CLIC_SUBINTERRUPTS 0 #endif @@ -17,6 +22,8 @@ #define __METAL_INTERRUPT_CONTROLLER_C000000_INTERRUPTS 1 +#define __METAL_PLIC_SUBINTERRUPTS 27 + #define METAL_MAX_PLIC_INTERRUPTS 1 #define METAL_MAX_CLIC_INTERRUPTS 0 @@ -172,7 +179,7 @@ struct __metal_driver_riscv_plic0 __metal_dt_interrupt_controller_c000000 = { .control_base = 201326592UL, .control_size = 67108864UL, .max_priority = 7UL, - .num_interrupts = 26UL, + .num_interrupts = 27UL, .interrupt_controller = 1, }; |