entry.S 950 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/arch/arm/vfp/entry.S
  4. *
  5. * Copyright (C) 2004 ARM Limited.
  6. * Written by Deep Blue Solutions Limited.
  7. */
  8. #include <linux/init.h>
  9. #include <linux/linkage.h>
  10. #include <asm/thread_info.h>
  11. #include <asm/vfpmacros.h>
  12. #include <asm/assembler.h>
  13. #include <asm/asm-offsets.h>
  14. @ VFP entry point.
  15. @
  16. @ r0 = instruction opcode (32-bit ARM or two 16-bit Thumb)
  17. @ r2 = PC value to resume execution after successful emulation
  18. @ r9 = normal "successful" return address
  19. @ r10 = this threads thread_info structure
  20. @ lr = unrecognised instruction return address
  21. @ IRQs enabled.
  22. @
  23. ENTRY(do_vfp)
  24. inc_preempt_count r10, r4
  25. ldr r4, .LCvfp
  26. ldr r11, [r10, #TI_CPU] @ CPU number
  27. add r10, r10, #TI_VFPSTATE @ r10 = workspace
  28. ldr pc, [r4] @ call VFP entry point
  29. ENDPROC(do_vfp)
  30. ENTRY(vfp_null_entry)
  31. dec_preempt_count_ti r10, r4
  32. ret lr
  33. ENDPROC(vfp_null_entry)
  34. .align 2
  35. .LCvfp:
  36. .word vfp_vector