xref: /openbmc/linux/arch/arm64/kvm/hyp/fpsimd.S (revision 8730046c)
1/*
2 * Copyright (C) 2015 - ARM Ltd
3 * Author: Marc Zyngier <marc.zyngier@arm.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include <linux/linkage.h>
19
20#include <asm/fpsimdmacros.h>
21
22	.text
23	.pushsection	.hyp.text, "ax"
24
25ENTRY(__fpsimd_save_state)
26	fpsimd_save	x0, 1
27	ret
28ENDPROC(__fpsimd_save_state)
29
30ENTRY(__fpsimd_restore_state)
31	fpsimd_restore	x0, 1
32	ret
33ENDPROC(__fpsimd_restore_state)
34