| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015 - ARM Ltd |
|---|
| 3 | 4 | * 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 | 5 | */ |
|---|
| 17 | 6 | |
|---|
| 18 | 7 | #include <linux/linkage.h> |
|---|
| .. | .. |
|---|
| 20 | 9 | #include <asm/fpsimdmacros.h> |
|---|
| 21 | 10 | |
|---|
| 22 | 11 | .text |
|---|
| 23 | | - .pushsection .hyp.text, "ax" |
|---|
| 24 | 12 | |
|---|
| 25 | | -ENTRY(__fpsimd_save_state) |
|---|
| 13 | +SYM_FUNC_START(__fpsimd_save_state) |
|---|
| 26 | 14 | fpsimd_save x0, 1 |
|---|
| 27 | 15 | ret |
|---|
| 28 | | -ENDPROC(__fpsimd_save_state) |
|---|
| 16 | +SYM_FUNC_END(__fpsimd_save_state) |
|---|
| 29 | 17 | |
|---|
| 30 | | -ENTRY(__fpsimd_restore_state) |
|---|
| 18 | +SYM_FUNC_START(__fpsimd_restore_state) |
|---|
| 31 | 19 | fpsimd_restore x0, 1 |
|---|
| 32 | 20 | ret |
|---|
| 33 | | -ENDPROC(__fpsimd_restore_state) |
|---|
| 21 | +SYM_FUNC_END(__fpsimd_restore_state) |
|---|
| 22 | + |
|---|
| 23 | +SYM_FUNC_START(__sve_restore_state) |
|---|
| 24 | + __sve_load 0, x1, 2 |
|---|
| 25 | + ret |
|---|
| 26 | +SYM_FUNC_END(__sve_restore_state) |
|---|
| 27 | + |
|---|
| 28 | +SYM_FUNC_START(__sve_save_state) |
|---|
| 29 | + sve_save 0, x1, 2 |
|---|
| 30 | + ret |
|---|
| 31 | +SYM_FUNC_END(__sve_save_state) |
|---|