mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 14:21:47 +00:00
6a37ff388a
During boot, Linux initiates a clean-invalidate operation only, resulting in faulty data to be written to the memory system during resume. Therefore invalidate the L1 in the secondary boot path to avoid these issues. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
27 lines
734 B
ArmAsm
27 lines
734 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>
|
|
|
|
ENTRY(zynq_secondary_trampoline)
|
|
ldr r0, [pc]
|
|
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)
|
|
|
|
ENTRY(zynq_secondary_startup)
|
|
bl v7_invalidate_l1
|
|
b secondary_startup
|
|
ENDPROC(zynq_secondary_startup)
|