mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
rk30: smp: fix boot_secondary with l2 cache
This commit is contained in:
parent
68c22f7a09
commit
ea01aa531e
|
|
@ -36,9 +36,10 @@ int __cpuinit boot_secondary(unsigned int cpu, struct task_struct *idle)
|
|||
if (!copied) {
|
||||
unsigned long sz = 0x100;
|
||||
|
||||
memcpy(RK30_SCU_BASE + sz - 4, (void *)rk30_sram_secondary_startup + sz - 4, 4);
|
||||
memcpy(RK30_IMEM_BASE + sz - 4, (void *)rk30_sram_secondary_startup + sz - 4, 4);
|
||||
memcpy(RK30_IMEM_BASE, rk30_sram_secondary_startup, sz);
|
||||
flush_icache_range((unsigned long)RK30_IMEM_BASE, (unsigned long)RK30_IMEM_BASE + sz);
|
||||
outer_clean_range(0, sz);
|
||||
copied = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user