Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 Steffen Trumtrar <s.trumtrar@pengutronix.de> |
| 3 | * Copyright (c) 2012-2013 Xilinx |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | */ |
| 9 | #include <linux/linkage.h> |
| 10 | #include <linux/init.h> |
Michal Simek | eb28d0b | 2014-04-11 15:05:56 +0200 | [diff] [blame] | 11 | #include <asm/assembler.h> |
Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 12 | |
Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 13 | ENTRY(zynq_secondary_trampoline) |
Michal Simek | eb28d0b | 2014-04-11 15:05:56 +0200 | [diff] [blame] | 14 | ARM_BE8(setend be) @ ensure we are in BE8 mode |
| 15 | ldr r0, zynq_secondary_trampoline_jump |
| 16 | ARM_BE8(rev r0, r0) |
Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 17 | bx r0 |
| 18 | .globl zynq_secondary_trampoline_jump |
| 19 | zynq_secondary_trampoline_jump: |
| 20 | /* Space for jumping address */ |
Nathan Lynch | e4a9288 | 2015-07-17 16:01:02 -0500 | [diff] [blame] | 21 | .word 0 /* cpu 1 */ |
Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 22 | .globl zynq_secondary_trampoline_end |
| 23 | zynq_secondary_trampoline_end: |
Michal Simek | aa7eb2b | 2013-03-20 13:50:12 +0100 | [diff] [blame] | 24 | ENDPROC(zynq_secondary_trampoline) |