fpsimd.S 612 B

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