mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
![Nathan Lynch](/assets/img/avatar_default.png)
Add a zero argument to the .word directive in zynq_secondary_trampoline. Without an expression the assembler emits nothing for the .word directive. This makes it so that the intended range is communicated to ioremap and outer_flush_range in zynq_cpun_start; e.g. for LE trampoline_code_size evaluates to 12 now instead of 8. Found by inspection. I'm not aware of any real problem this fixes. Tested by doing on online/offline loop on ZC702. Signed-off-by: Nathan Lynch <nathan_lynch@mentor.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
24 lines
754 B
ArmAsm
24 lines
754 B
ArmAsm
/*
|
|
* 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>
|
|
#include <asm/assembler.h>
|
|
|
|
ENTRY(zynq_secondary_trampoline)
|
|
ARM_BE8(setend be) @ ensure we are in BE8 mode
|
|
ldr r0, zynq_secondary_trampoline_jump
|
|
ARM_BE8(rev r0, r0)
|
|
bx r0
|
|
.globl zynq_secondary_trampoline_jump
|
|
zynq_secondary_trampoline_jump:
|
|
/* Space for jumping address */
|
|
.word 0 /* cpu 1 */
|
|
.globl zynq_secondary_trampoline_end
|
|
zynq_secondary_trampoline_end:
|
|
ENDPROC(zynq_secondary_trampoline)
|