entry.S 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * linux/arch/arm/vfp/entry.S
  3. *
  4. * Copyright (C) 2004 ARM Limited.
  5. * Written by Deep Blue Solutions Limited.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * Basic entry code, called from the kernel's undefined instruction trap.
  12. * r0 = faulted instruction
  13. * r5 = faulted PC+4
  14. * r9 = successful return
  15. * r10 = thread_info structure
  16. * lr = failure return
  17. */
  18. #include <linux/linkage.h>
  19. #include <linux/init.h>
  20. #include <asm/constants.h>
  21. #include <asm/vfpmacros.h>
  22. .globl do_vfp
  23. do_vfp:
  24. ldr r4, .LCvfp
  25. add r10, r10, #TI_VFPSTATE @ r10 = workspace
  26. ldr pc, [r4] @ call VFP entry point
  27. .LCvfp:
  28. .word vfp_vector
  29. @ This code is called if the VFP does not exist. It needs to flag the
  30. @ failure to the VFP initialisation code.
  31. __INIT
  32. .globl vfp_testing_entry
  33. vfp_testing_entry:
  34. ldr r0, VFP_arch_address
  35. str r5, [r0] @ known non-zero value
  36. mov pc, r9 @ we have handled the fault
  37. VFP_arch_address:
  38. .word VFP_arch
  39. __FINIT