RISC-V: Split out the XIP fixups into their own file
authorPalmer Dabbelt <palmer@rivosinc.com>
Wed, 20 Apr 2022 03:02:16 +0000 (20:02 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 25 May 2022 21:43:33 +0000 (14:43 -0700)
commite7681beba992d5a196476d5d79dfcb48f2a2c477
tree404652315465a559ad3f53da2653eed569f61396
parent1ae41598f482616449f869daf53eebe37973dc27
RISC-V: Split out the XIP fixups into their own file

This was broken by the original refactoring (as the XIP definitions
depend on <asm/pgtable.h>) and then more broken by the merge (as I
accidentally took the old version).  This fixes both breakages, while
also pulling this out of <asm/asm.h> to avoid polluting most assembly
files with the XIP fixups.

Fixes: bee7fbc38579 ("RISC-V CPU Idle Support")
Fixes: 63b13e64a829 ("RISC-V: Add arch functions for non-retentive suspend entry/exit")
Link: https://lore.kernel.org/r/20220420184056.7886-4-palmer@rivosinc.com
Reviewed-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/include/asm/asm.h
arch/riscv/include/asm/xip_fixup.h [new file with mode: 0644]
arch/riscv/kernel/head.S
arch/riscv/kernel/suspend_entry.S