2019-06-03 07:44:50 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2015-10-26 08:34:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 - ARM Ltd
|
|
|
|
* Author: Marc Zyngier <marc.zyngier@arm.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
|
|
|
|
#include <asm/fpsimdmacros.h>
|
|
|
|
|
|
|
|
.text
|
|
|
|
|
2020-02-18 19:58:37 +00:00
|
|
|
SYM_FUNC_START(__fpsimd_save_state)
|
2015-10-26 08:34:09 +00:00
|
|
|
fpsimd_save x0, 1
|
|
|
|
ret
|
2020-02-18 19:58:37 +00:00
|
|
|
SYM_FUNC_END(__fpsimd_save_state)
|
2015-10-26 08:34:09 +00:00
|
|
|
|
2020-02-18 19:58:37 +00:00
|
|
|
SYM_FUNC_START(__fpsimd_restore_state)
|
2015-10-26 08:34:09 +00:00
|
|
|
fpsimd_restore x0, 1
|
|
|
|
ret
|
2020-02-18 19:58:37 +00:00
|
|
|
SYM_FUNC_END(__fpsimd_restore_state)
|
2021-03-11 11:52:38 +00:00
|
|
|
|
|
|
|
SYM_FUNC_START(__sve_restore_state)
|
2021-10-19 18:22:09 +01:00
|
|
|
mov x2, #1
|
2021-10-19 18:22:13 +01:00
|
|
|
sve_load 0, x1, x2, 3
|
2021-03-11 11:52:38 +00:00
|
|
|
ret
|
|
|
|
SYM_FUNC_END(__sve_restore_state)
|
2024-06-03 13:28:43 +01:00
|
|
|
|
|
|
|
SYM_FUNC_START(__sve_save_state)
|
|
|
|
mov x2, #1
|
|
|
|
sve_save 0, x1, x2, 3
|
|
|
|
ret
|
|
|
|
SYM_FUNC_END(__sve_save_state)
|