From mboxrd@z Thu Jan 1 00:00:00 1970 From: ard.biesheuvel@linaro.org (Ard Biesheuvel) Date: Mon, 23 Mar 2015 10:07:23 +0100 Subject: [PATCH v2 0/3] arm64: relax Image placement requirement In-Reply-To: <1426870974-4801-1-git-send-email-ard.biesheuvel@linaro.org> References: <1426870974-4801-1-git-send-email-ard.biesheuvel@linaro.org> Message-ID: <1427101646-465-1-git-send-email-ard.biesheuvel@linaro.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org So as it turns out, the 512 MB alignment boundary restriction appears to have been introduced by accident when increasing the ID map to cover the entire kernel Image. So this reverts that change, by reducing the ID map to something that can never cross a 512 MB boundary by construction. Patch #1 removes some functions that are unused, so that I don't have to worry about them in patch #2 Patch #2 introduces the reduced ID map, using a separate linker section that contains code the manipulates the state of the MMU. Patch #3 removes the sleep_idmap_phys global which always points to the ID map anyway Ard Biesheuvel (3): arm64: remove soft_restart() and friends arm64: reduce ID map to a single page arm64: drop sleep_idmap_phys arch/arm64/include/asm/mmu.h | 1 - arch/arm64/include/asm/proc-fns.h | 3 --- arch/arm64/include/asm/system_misc.h | 1 - arch/arm64/kernel/head.S | 13 +++++++------ arch/arm64/kernel/process.c | 12 +----------- arch/arm64/kernel/sleep.S | 9 ++++----- arch/arm64/kernel/suspend.c | 3 --- arch/arm64/kernel/vmlinux.lds.S | 11 ++++++++++- arch/arm64/mm/mmu.c | 11 ----------- arch/arm64/mm/proc.S | 33 --------------------------------- 10 files changed, 22 insertions(+), 75 deletions(-) -- 1.8.3.2