// a basic interrupt handler void intr_handler(void) { exc_prologue(); LEDS += exc_get_source() & 0xf; exc_epilogue(); }
// a basic trap void trap_handler(void) { exc_prologue(); puts("TRAP"); exc_epilogue(); }
void __data_resp_handler(void) { exc_prologue(); int tmp = noc_fifo_data_read(); done[get_cpuid()] = 1; // if (get_cpuid() == NOC_MASTER) { // puts("Hello from interrupt handler"); // fflush(stdout); // } intr_clear_pending(exc_get_source()); exc_epilogue(); }