Skip to content

Commit 38d5b29

Browse files
committed
Merge tag 'v5.16-rockchip-socfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into arm/fixes
Prevent panic with FORTIFY_SOURCE in smp bringup. * tag 'v5.16-rockchip-socfixes1' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: ARM: rockchip: Use memcpy_toio instead of memcpy on smp bring-up Link: https://lore.kernel.org/r/1827929.9bfCS3lLB7@phil Signed-off-by: Arnd Bergmann <[email protected]>
2 parents d823bf8 + 423e85e commit 38d5b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-rockchip/platsmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static int __init rockchip_smp_prepare_sram(struct device_node *node)
189189
rockchip_boot_fn = __pa_symbol(secondary_startup);
190190

191191
/* copy the trampoline to sram, that runs during startup of the core */
192-
memcpy(sram_base_addr, &rockchip_secondary_trampoline, trampoline_sz);
192+
memcpy_toio(sram_base_addr, &rockchip_secondary_trampoline, trampoline_sz);
193193
flush_cache_all();
194194
outer_clean_range(0, trampoline_sz);
195195

0 commit comments

Comments
 (0)