From 833e3fadf745dfdec6c8208f6c3b2ffd7b5a6f7f Mon Sep 17 00:00:00 2001 From: Drew Barbier Date: Mon, 2 Jul 2018 01:48:36 -0500 Subject: dont use pre-empt with buttons --- bsp/env/coreip-e2-arty/init.c | 13 ++++++++----- software/clic_vectored/clic_vectored.c | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/bsp/env/coreip-e2-arty/init.c b/bsp/env/coreip-e2-arty/init.c index aaf213c..3a4c77c 100644 --- a/bsp/env/coreip-e2-arty/init.c +++ b/bsp/env/coreip-e2-arty/init.c @@ -46,7 +46,8 @@ static void uart_init(size_t baud_rate) typedef void (*interrupt_function_ptr_t) (void); interrupt_function_ptr_t localISR[CLIC_NUM_INTERRUPTS] __attribute__((aligned(64))); -void trap_entry(void) __attribute__((interrupt("SiFive-CLIC-preemptible"), aligned(64))); + +void trap_entry(void) __attribute__((interrupt, aligned(64))); void trap_entry(void) { unsigned long mcause = read_csr(mcause); @@ -54,13 +55,13 @@ void trap_entry(void) if (mcause & MCAUSE_INT) { localISR[mcause & MCAUSE_CAUSE] (); } else { - while(1); + while(1); } } #ifdef CLIC_DIRECT #else -void default_handler(void)__attribute__((interrupt("SiFive-CLIC-preemptible")));; +void default_handler(void)__attribute__((interrupt));; #endif void default_handler(void) { @@ -76,9 +77,11 @@ void _init() puts("core freq at " STR(CPU_FREQ) " Hz\n"); //initialize vector table - for(int i=0;i++;i