nios2: rework trap handler
authorLey Foon Tan <lftan@altera.com>
Thu, 16 Apr 2015 07:19:01 +0000 (15:19 +0800)
committerLey Foon Tan <lftan@altera.com>
Mon, 20 Apr 2015 03:11:14 +0000 (11:11 +0800)
commitbaa54ab93c2e1ced7e54f9c021fe102c0d39c090
treed7e6dc664ef3c36d3b93f865dc1e245f2870805f
parent170c381f6bcd9ad3235654988aabddb612b34a39
nios2: rework trap handler

Redefine trap handler as below:

 0  N/A        reserved for system calls
 1  SIGUSR1    user-defined signal 1
 2  SIGUSR2    user-defined signal 2
 3  SIGILL     illegal instruction
 4..29         reserved (but implemented to raise SIGILL instead of being undefined)
30  SIGTRAP    KGDB
31  SIGTRAP    trace/breakpoint trap

Signed-off-by: Ley Foon Tan <lftan@altera.com>
arch/nios2/kernel/entry.S
arch/nios2/kernel/traps.c