| 1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 |
/* |
| 3 |
* Copyright (C) 2015 - ARM Ltd |
| 4 |
* Author: Marc Zyngier <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
#include <linux/linkage.h> |
| 8 |
|
| 9 |
#include <asm/fpsimdmacros.h> |
| 10 |
|
| 11 |
.text |
| 12 |
|
| 13 |
SYM_FUNC_START(__fpsimd_save_state) |
| 14 |
fpsimd_save x0, 1 |
| 15 |
ret |
| 16 |
SYM_FUNC_END(__fpsimd_save_state) |
| 17 |
|
| 18 |
SYM_FUNC_START(__fpsimd_restore_state) |
| 19 |
fpsimd_restore x0, 1 |
| 20 |
ret |
| 21 |
SYM_FUNC_END(__fpsimd_restore_state) |
| 22 |
|
| 23 |
SYM_FUNC_START(__sve_restore_state) |
| 24 |
mov x2, #1 |
| 25 |
sve_load 0, x1, x2, 3 |
| 26 |
ret |
| 27 |
SYM_FUNC_END(__sve_restore_state) |
| 28 |
|
| 29 |
SYM_FUNC_START(__sve_save_state) |
| 30 |
mov x2, #1 |
| 31 |
sve_save 0, x1, x2, 3 |
| 32 |
ret |
| 33 |
SYM_FUNC_END(__sve_save_state) |