]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv8/transition.S
Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq
[karo-tx-uboot.git] / arch / arm / cpu / armv8 / transition.S
1 /*
2  * (C) Copyright 2013
3  * David Feng <fenghua@phytium.com.cn>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <asm-offsets.h>
9 #include <config.h>
10 #include <version.h>
11 #include <linux/linkage.h>
12 #include <asm/macro.h>
13
14 ENTRY(armv8_switch_to_el2)
15         switch_el x0, 1f, 0f, 0f
16 0:      ret
17 1:      armv8_switch_to_el2_m x0
18 ENDPROC(armv8_switch_to_el2)
19
20 ENTRY(armv8_switch_to_el1)
21         switch_el x0, 0f, 1f, 0f
22 0:      ret
23 1:      armv8_switch_to_el1_m x0, x1
24 ENDPROC(armv8_switch_to_el1)