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>
15 adr r0, diag_reg_offset
17 add r1, r1, r0 @ r1 = physical &g_diag_reg
19 mcr p15, 0, r0, c15, c0, 1 @ write diagnostic register
22 ENTRY(v7_secondary_startup)
23 ARM_BE8(setend be) @ go BE8 if entered LE
26 ENDPROC(v7_secondary_startup)