]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: Set text_offset correctly for M-Mode
authorSean Anderson <seanga2@gmail.com>
Thu, 22 Oct 2020 20:30:12 +0000 (16:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:14 +0000 (19:22 +0100)
commit1e0043673ea2f66fed025e7ce1c14d2bfbb68ae8
tree49e23074cc4c485a4a5cac23b18e8133a6af0920
parent950fd0db5dbfc2f8e1c89c7c19c65daf2684ad9e
riscv: Set text_offset correctly for M-Mode

[ Upstream commit 79605f1394261995c2b955c906a5a20fb27cdc84 ]

M-Mode Linux is loaded at the start of RAM, not 2MB later. Perhaps this
should be calculated based on PAGE_OFFSET somehow? Even better would be to
deprecate text_offset and instead introduce something absolute.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/kernel/head.S