diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-10-16 17:30:37 +0200 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2015-11-03 15:19:39 +0100 |
commit | 0d848afe117ac3e31b9d57b65553ff18ef9d288f (patch) | |
tree | 9aa4ebb2625447a80174901cd631d473ad4050f2 /arch/xtensa/boot/boot-elf/bootstrap.S | |
parent | xtensa: fix secondary core boot in SMP (diff) | |
download | linux-0d848afe117ac3e31b9d57b65553ff18ef9d288f.tar.xz linux-0d848afe117ac3e31b9d57b65553ff18ef9d288f.zip |
xtensa: drop unused sections and remapped reset handlers
There are no .bootstrap or .ResetVector.text sections linked to the
vmlinux image, drop these sections from vmlinux.ld.S. Drop
RESET_VECTOR_VADDR definition only used for .ResetVector.text.
Drop remapped copies of primary and secondary reset vectors, as modern
gdb don't have problems stepping through instructions at arbitrary
locations. Drop corresponding sections from the corresponding linker
scripts.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/boot/boot-elf/bootstrap.S')
-rw-r--r-- | arch/xtensa/boot/boot-elf/bootstrap.S | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/xtensa/boot/boot-elf/bootstrap.S b/arch/xtensa/boot/boot-elf/bootstrap.S index 9341a5750694..e6bf313613cf 100644 --- a/arch/xtensa/boot/boot-elf/bootstrap.S +++ b/arch/xtensa/boot/boot-elf/bootstrap.S @@ -58,8 +58,6 @@ _SetupMMU: wsr a0, ps rsync - Offset = _SetupMMU - _ResetVector - #ifndef CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX initialize_mmu #endif @@ -74,29 +72,3 @@ reset: movi a3, 0 movi a4, 0 jx a0 - -#ifdef CONFIG_MMU - .align 4 - - .section .ResetVector.remapped_text, "x" - .global _RemappedResetVector - - /* Do org before literals */ - .org 0 - -_RemappedResetVector: - .begin no-absolute-literals - .literal_position - - _j _RemappedSetupMMU - - /* Position Remapped code at the same location as the original code */ - . = _RemappedResetVector + Offset - -_RemappedSetupMMU: -#ifndef CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX - initialize_mmu -#endif - - .end no-absolute-literals -#endif |