riscv: Set text_offset correctly for M-Mode
authorSean Anderson <seanga2@gmail.com>
Thu, 22 Oct 2020 20:30:12 +0000 (16:30 -0400)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 6 Nov 2020 01:32:27 +0000 (17:32 -0800)
commit79605f1394261995c2b955c906a5a20fb27cdc84
tree9cdc800e4ee872c9985f755c98c9e10cab2e855d
parent1bd14a66ee5200d6a24419cbd2e0a0fccd4da36f
riscv: Set text_offset correctly for M-Mode

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>
arch/riscv/kernel/head.S