Merge tag 'sched-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / mach-imx / headsmp.S
blob766dbdb2ae27b9eb51cca555c8170103d17dde17
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Copyright 2011 Freescale Semiconductor, Inc.
4  * Copyright 2011 Linaro Ltd.
5  */
7 #include <linux/linkage.h>
8 #include <linux/init.h>
9 #include <asm/assembler.h>
11 diag_reg_offset:
12         .word   g_diag_reg - .
14         .macro  set_diag_reg
15         adr     r0, diag_reg_offset
16         ldr     r1, [r0]
17         add     r1, r1, r0              @ r1 = physical &g_diag_reg
18         ldr     r0, [r1]
19         mcr     p15, 0, r0, c15, c0, 1  @ write diagnostic register
20         .endm
22 ENTRY(v7_secondary_startup)
23 ARM_BE8(setend be)                      @ go BE8 if entered LE
24         set_diag_reg
25         b       secondary_startup
26 ENDPROC(v7_secondary_startup)