xtensa: implement early_trap_init
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 16 Dec 2017 00:20:56 +0000 (16:20 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 17 Dec 2017 06:37:09 +0000 (22:37 -0800)
commit501c26e82df8d253851b80082778eeb37e4bab5c
tree4e90bb47018a93d1647f8b9f2d9b363cdc86b4d4
parentf21a79cab3773bc17aa845b7738c7f200778a260
xtensa: implement early_trap_init

Paging on xtensa architecture requires functioning exception handling
because hardware cannot transparently access page tables that are not
currently mapped by TLB. Exception handling is set up late in the
initialization process, but working paging is needed for KASAN.

Provide early_trap_init that sets up minimal exception handling
sufficient for KASAN to work.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/traps.h