1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2008 - 2013 Tensilica Inc.
4 * (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
9 * We currently don't handle any exception and force a reset.
10 * (Note that alloca is a special case and handled in start.S)
15 #include <asm/string.h>
18 typedef void (*handler_t)(struct pt_regs *);
20 void unhandled_exception(struct pt_regs *regs)
22 printf("Unhandled Exception: EXCCAUSE = %ld, EXCVADDR = %lx, pc = %lx\n",
23 regs->exccause, regs->excvaddr, regs->pc);
27 handler_t exc_table[EXCCAUSE_LAST] = {
28 [0 ... EXCCAUSE_LAST-1] = unhandled_exception,
31 int interrupt_init(void)
36 void enable_interrupts(void)
40 int disable_interrupts(void)