Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2015 - ARM Ltd
0004  * Author: Marc Zyngier <marc.zyngier@arm.com>
0005  */
0006 
0007 #include <linux/linkage.h>
0008 
0009 #include <asm/fpsimdmacros.h>
0010 
0011     .text
0012 
0013 SYM_FUNC_START(__fpsimd_save_state)
0014     fpsimd_save x0, 1
0015     ret
0016 SYM_FUNC_END(__fpsimd_save_state)
0017 
0018 SYM_FUNC_START(__fpsimd_restore_state)
0019     fpsimd_restore  x0, 1
0020     ret
0021 SYM_FUNC_END(__fpsimd_restore_state)
0022 
0023 SYM_FUNC_START(__sve_restore_state)
0024     mov x2, #1
0025     sve_load 0, x1, x2, 3
0026     ret
0027 SYM_FUNC_END(__sve_restore_state)