fpsimd.S 938 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 2015 - ARM Ltd
  3. * 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. */
  17. #include <linux/linkage.h>
  18. #include <asm/fpsimdmacros.h>
  19. .text
  20. .pushsection .hyp.text, "ax"
  21. ENTRY(__fpsimd_save_state)
  22. fpsimd_save x0, 1
  23. ret
  24. ENDPROC(__fpsimd_save_state)
  25. ENTRY(__fpsimd_restore_state)
  26. fpsimd_restore x0, 1
  27. ret
  28. ENDPROC(__fpsimd_restore_state)