]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Always define XIP_FIXUP
authorPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 28 Apr 2021 21:45:12 +0000 (14:45 -0700)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sat, 1 May 2021 15:53:41 +0000 (08:53 -0700)
commit295ece127d98a47552b9bc24214f718640c6ae0b
tree9ad43de2520c5ec9f5499e4448ead398a55ec360
parent9d2baa87f3c82f905204c7fe10dafe47441c7dd3
RISC-V: Always define XIP_FIXUP

XIP depends on MMU, but XIP_FIXUP is used throughout the kernel in
order to avoid excessive ifdefs.  This just makes sure to always define
XIP_FIXUP, which will fix MMU=n builds.  XIP_OFFSET is used by assembly
but XIP_FIXUP is C-only, so they're split.

Fixes: 481bac616443 ("RISC-V: enable XIP")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Tested-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h