summaryrefslogtreecommitdiff
path: root/arch/openrisc/boot/dts/Makefile
diff options
context:
space:
mode:
authorGreentime Hu <greentime.hu@sifive.com>2020-01-15 14:54:36 +0800
committerPaul Walmsley <paul.walmsley@sifive.com>2020-01-15 18:07:54 -0800
commit20d2292754e72e445abe62b7ac453eb945fc626c (patch)
tree1b629654ed936a59191b0c266bfea36e204fbc3d /arch/openrisc/boot/dts/Makefile
parentb3a987b0264d3ddbb24293ebff10eddfc472f653 (diff)
riscv: make sure the cores stay looping in .Lsecondary_park
The code in secondary_park is currently placed in the .init section. The kernel reclaims and clears this code when it finishes booting. That causes the cores parked in it to go to somewhere unpredictable, so we move this function out of init to make sure the cores stay looping there. The instruction bgeu a0, t0, .Lsecondary_park may have "a relocation truncated to fit" issue during linking time. It is because that sections are too far to jump. Let's use tail to jump to the .Lsecondary_park. Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Reviewed-by: Anup Patel <anup.patel@sifive.com> Cc: Andreas Schwab <schwab@suse.de> Cc: stable@vger.kernel.org Fixes: 76d2a0493a17d ("RISC-V: Init and Halt Code") Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'arch/openrisc/boot/dts/Makefile')
0 files changed, 0 insertions, 0 deletions