xtensa: add trap_set_handler function
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 19 Nov 2012 04:30:15 +0000 (08:30 +0400)
committerChris Zankel <chris@zankel.net>
Wed, 19 Dec 2012 05:10:22 +0000 (21:10 -0800)
commit28570e8dac5c86ab10ce2a7e9c02d3aaece63760
tree29a915825b1851c1377d88bdb008a0eb7993d78f
parentc622b29d1f38021411965b7e0170ab055551b257
xtensa: add trap_set_handler function

trap_set_handler sets new C-handler in the exception table and returns
previous handler.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/traps.h [new file with mode: 0644]
arch/xtensa/kernel/traps.c