xtensa: move vecbase SR initialization to _startup
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 4 Oct 2014 01:12:27 +0000 (05:12 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 21 Oct 2014 09:28:55 +0000 (13:28 +0400)
commit53490121e9ffa3e6314137af016cde8ac83c9bb4
treea255f95a198f91c3a4edd24e5858a7a753586200
parenta4f9846da76c854dcd13a5ac00826b599ad09745
xtensa: move vecbase SR initialization to _startup

Instead of initializing vecbase in initialize_mmu macro, which may be
expanded either in Image.elf reset vector hadler or in the kernel
head.S, both times only when CONFIG_MMU is enabled, do this
initialization once in _startup function.

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