2010-12-14 15:56:55 +08:00
|
|
|
/*
|
|
|
|
* SMP support for R-Mobile / SH-Mobile
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Magnus Damm
|
|
|
|
* Copyright (C) 2010 Takashi Yoshii
|
|
|
|
*
|
|
|
|
* Based on vexpress, Copyright (c) 2003 ARM Limited, All Rights Reserved
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/init.h>
|
2010-12-20 19:04:50 +08:00
|
|
|
#include <asm/memory.h>
|
2010-12-14 15:56:55 +08:00
|
|
|
|
2011-12-28 15:44:06 +08:00
|
|
|
__CPUINIT
|
2010-12-14 15:56:55 +08:00
|
|
|
|
2012-05-09 15:24:59 +08:00
|
|
|
ENTRY(shmobile_invalidate_start)
|
|
|
|
bl v7_invalidate_l1
|
|
|
|
b secondary_startup
|
|
|
|
ENDPROC(shmobile_invalidate_start)
|
|
|
|
|
2010-12-14 15:56:55 +08:00
|
|
|
/*
|
|
|
|
* Reset vector for secondary CPUs.
|
|
|
|
* This will be mapped at address 0 by SBAR register.
|
|
|
|
* We need _long_ jump to the physical address.
|
|
|
|
*/
|
|
|
|
.align 12
|
2013-06-10 17:19:36 +08:00
|
|
|
ENTRY(shmobile_boot_vector)
|
|
|
|
ldr r0, 2f
|
2010-12-14 15:56:55 +08:00
|
|
|
ldr pc, 1f
|
2013-06-10 17:19:36 +08:00
|
|
|
ENDPROC(shmobile_boot_vector)
|
|
|
|
|
|
|
|
.globl shmobile_boot_fn
|
|
|
|
shmobile_boot_fn:
|
|
|
|
1: .space 4
|
|
|
|
.globl shmobile_boot_arg
|
|
|
|
shmobile_boot_arg:
|
|
|
|
2: .space 4
|