OSDN Git Service

RISC-V: Rename relocate() and make it global
authorAnup Patel <anup.patel@wdc.com>
Thu, 10 Feb 2022 05:49:41 +0000 (11:19 +0530)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 10 Mar 2022 17:29:27 +0000 (09:29 -0800)
commite1de2c93e78740383db1a0ff626d8ca2cdc28aaf
tree91e7cf72242bc4924aa02dcaf8ecd2a9696f7df7
parentf6e64b66629e8fff0997825ade06619f09a06583
RISC-V: Rename relocate() and make it global

The low-level relocate() function enables mmu and relocates
execution to link-time addresses. We rename relocate() function
to relocate_enable_mmu() function which is more informative.

Also, the relocate_enable_mmu() function will be used in the
resume path when a CPU wakes-up from a non-retentive suspend
so we make it global symbol.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/head.S