| * arch/xtensa/include/asm/traps.h |
| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 2012 Tensilica Inc. |
| * handler must be either of the following: |
| * void (*)(struct pt_regs *regs); |
| * void (*)(struct pt_regs *regs, unsigned long exccause); |
| extern void * __init trap_set_handler(int cause, void *handler); |
| extern void do_unhandled(struct pt_regs *regs, unsigned long exccause); |
| static inline void spill_registers(void) |
| " .rept (" __stringify(XCHAL_NUM_AREGS) " - 32) / 12\n" |
| #if XCHAL_NUM_AREGS % 12 == 0 |
| #elif XCHAL_NUM_AREGS % 12 == 4 |
| #elif XCHAL_NUM_AREGS % 12 == 8 |
| : : : "a12", "a13", "memory"); |
| #endif /* _XTENSA_TRAPS_H */ |