ppc_asm.h 872 B

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