ppc_asm.h 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <ppc-asm.h>
  3. #define CONFIG_ALTIVEC
  4. #define r1 1
  5. #define R14 r14
  6. #define R15 r15
  7. #define R16 r16
  8. #define R17 r17
  9. #define R18 r18
  10. #define R19 r19
  11. #define R20 r20
  12. #define R21 r21
  13. #define R22 r22
  14. #define R29 r29
  15. #define R30 r30
  16. #define R31 r31
  17. #define STACKFRAMESIZE 256
  18. #define STK_REG(i) (112 + ((i)-14)*8)
  19. #define _GLOBAL(A) FUNC_START(test_ ## A)
  20. #define _GLOBAL_TOC(A) _GLOBAL(A)
  21. #define PPC_MTOCRF(A, B) mtocrf A, B
  22. #define EX_TABLE(x, y)
  23. FUNC_START(enter_vmx_usercopy)
  24. li r3,1
  25. blr
  26. FUNC_START(exit_vmx_usercopy)
  27. li r3,0
  28. blr
  29. FUNC_START(enter_vmx_copy)
  30. li r3,1
  31. blr
  32. FUNC_START(exit_vmx_copy)
  33. blr
  34. FUNC_START(memcpy_power7)
  35. blr
  36. FUNC_START(__copy_tofrom_user_power7)
  37. blr
  38. FUNC_START(__copy_tofrom_user_base)
  39. blr
  40. #define BEGIN_FTR_SECTION
  41. #define FTR_SECTION_ELSE
  42. #define ALT_FTR_SECTION_END_IFCLR(x)
  43. #define ALT_FTR_SECTION_END(x, y)
  44. #define END_FTR_SECTION_IFCLR(x)