vfpmacros.h 894 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * linux/include/asm-arm/vfpmacros.h
  3. *
  4. * Assembler-only file containing VFP macros and register definitions.
  5. */
  6. #include "vfp.h"
  7. @ Macros to allow building with old toolkits (with no VFP support)
  8. .macro VFPFMRX, rd, sysreg, cond
  9. MRC\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMRX \rd, \sysreg
  10. .endm
  11. .macro VFPFMXR, sysreg, rd, cond
  12. MCR\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMXR \sysreg, \rd
  13. .endm
  14. @ read all the working registers back into the VFP
  15. .macro VFPFLDMIA, base
  16. #if __LINUX_ARM_ARCH__ < 6
  17. LDC p11, cr0, [\base],#33*4 @ FLDMIAX \base!, {d0-d15}
  18. #else
  19. LDC p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d0-d15}
  20. #endif
  21. .endm
  22. @ write all the working registers out of the VFP
  23. .macro VFPFSTMIA, base
  24. #if __LINUX_ARM_ARCH__ < 6
  25. STC p11, cr0, [\base],#33*4 @ FSTMIAX \base!, {d0-d15}
  26. #else
  27. STC p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d0-d15}
  28. #endif
  29. .endm