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