1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2011 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
7 #include <linux/linkage.h>
8 #include <linux/init.h>
9 #include <asm/assembler.h>
17 adr r0, diag_reg_offset
19 add r1, r1, r0 @ r1 = physical &g_diag_reg
21 mcr p15, 0, r0, c15, c0, 1 @ write diagnostic register
24 ENTRY(v7_secondary_startup)
25 ARM_BE8(setend be) @ go BE8 if entered LE
26 mrc p15, 0, r0, c0, c0, 0
29 /* 0xc07 is cortex A7's ID */
37 ENDPROC(v7_secondary_startup)