Masahiro Yamada | 063eb1e | 2016-04-21 14:43:18 +0900 | [diff] [blame] | 1 | /* |
2 | * Copyright (C) 2016 Masahiro Yamada <yamada.masahiro@socionext.com> | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: GPL-2.0+ | ||||
5 | */ | ||||
6 | |||||
7 | #include <linux/linkage.h> | ||||
8 | |||||
9 | ENTRY(uniphier_smp_setup) | ||||
10 | mrs x0, s3_1_c15_c2_1 /* CPUECTLR_EL1 */ | ||||
11 | orr x0, x0, #(1 << 6) /* SMPEN */ | ||||
12 | msr s3_1_c15_c2_1, x0 | ||||
13 | ret | ||||
14 | ENDPROC(uniphier_smp_setup) | ||||
15 | |||||
16 | ENTRY(uniphier_secondary_startup) | ||||
17 | bl uniphier_smp_setup | ||||
18 | b _start | ||||
19 | ENDPROC(uniphier_secondary_startup) |