2013-03-20 13:50:12 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Steffen Trumtrar <s.trumtrar@pengutronix.de>
|
|
|
|
* Copyright (c) 2012-2013 Xilinx
|
|
|
|
*
|
|
|
|
* 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>
|
2014-04-11 15:05:56 +02:00
|
|
|
#include <asm/assembler.h>
|
2013-03-20 13:50:12 +01:00
|
|
|
|
|
|
|
ENTRY(zynq_secondary_trampoline)
|
2014-04-11 15:05:56 +02:00
|
|
|
ARM_BE8(setend be) @ ensure we are in BE8 mode
|
|
|
|
ldr r0, zynq_secondary_trampoline_jump
|
|
|
|
ARM_BE8(rev r0, r0)
|
2013-03-20 13:50:12 +01:00
|
|
|
bx r0
|
|
|
|
.globl zynq_secondary_trampoline_jump
|
|
|
|
zynq_secondary_trampoline_jump:
|
|
|
|
/* Space for jumping address */
|
|
|
|
.word /* cpu 1 */
|
|
|
|
.globl zynq_secondary_trampoline_end
|
|
|
|
zynq_secondary_trampoline_end:
|
|
|
|
ENDPROC(zynq_secondary_trampoline)
|
2013-10-31 17:10:15 +01:00
|
|
|
|
|
|
|
ENTRY(zynq_secondary_startup)
|
|
|
|
bl v7_invalidate_l1
|
|
|
|
b secondary_startup
|
|
|
|
ENDPROC(zynq_secondary_startup)
|