GENcopy_from_user.S 571 B

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