GENcopy_from_user.S 611 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* GENcopy_from_user.S: Generic sparc64 copy from userspace.
  3. *
  4. * Copyright (C) 2007 David S. Miller (davem@davemloft.net)
  5. */
  6. #define EX_LD(x,y) \
  7. 98: x; \
  8. .section __ex_table,"a";\
  9. .align 4; \
  10. .word 98b, y; \
  11. .text; \
  12. .align 4;
  13. #ifndef ASI_AIUS
  14. #define ASI_AIUS 0x11
  15. #endif
  16. #define FUNC_NAME GENcopy_from_user
  17. #define LOAD(type,addr,dest) type##a [addr] ASI_AIUS, dest
  18. #define EX_RETVAL(x) 0
  19. #ifdef __KERNEL__
  20. #define PREAMBLE \
  21. rd %asi, %g1; \
  22. cmp %g1, ASI_AIUS; \
  23. bne,pn %icc, raw_copy_in_user; \
  24. nop
  25. #endif
  26. #include "GENmemcpy.S"