blob: ade1cdead83920dea59b38ecc895552c18fd442a [file] [log] [blame]
David Feng0ae76532013-12-14 11:47:35 +08001/*
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
14ENTRY(armv8_switch_to_el2)
15 switch_el x0, 1f, 0f, 0f
160: ret
York Sun40f8dec2014-09-08 12:20:00 -0700171: armv8_switch_to_el2_m x0
David Feng0ae76532013-12-14 11:47:35 +080018ENDPROC(armv8_switch_to_el2)
19
20ENTRY(armv8_switch_to_el1)
21 switch_el x0, 0f, 1f, 0f
220: ret
York Sun40f8dec2014-09-08 12:20:00 -0700231: armv8_switch_to_el1_m x0, x1
David Feng0ae76532013-12-14 11:47:35 +080024ENDPROC(armv8_switch_to_el1)