rk30: smp: fix boot_secondary with l2 cache

This commit is contained in:
黄涛
2012-03-09 20:37:05 +08:00
parent 68c22f7a09
commit ea01aa531e

View File

@@ -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;
}