0001
0002
0003
0004
0005
0006
0007
0008 #include <linux/init.h>
0009 #include <linux/linkage.h>
0010 #include <asm/thread_info.h>
0011 #include <asm/vfpmacros.h>
0012 #include <asm/assembler.h>
0013 #include <asm/asm-offsets.h>
0014
0015 @ VFP entry point.
0016 @
0017 @ r0 = instruction opcode (32-bit ARM or two 16-bit Thumb)
0018 @ r2 = PC value to resume execution after successful emulation
0019 @ r9 = normal "successful" return address
0020 @ r10 = this threads thread_info structure
0021 @ lr = unrecognised instruction return address
0022 @ IRQs enabled.
0023 @
0024 ENTRY(do_vfp)
0025 inc_preempt_count r10, r4
0026 ldr r4, .LCvfp
0027 ldr r11, [r10, #TI_CPU] @ CPU number
0028 add r10, r10, #TI_VFPSTATE @ r10 = workspace
0029 ldr pc, [r4] @ call VFP entry point
0030 ENDPROC(do_vfp)
0031
0032 ENTRY(vfp_null_entry)
0033 dec_preempt_count_ti r10, r4
0034 ret lr
0035 ENDPROC(vfp_null_entry)
0036
0037 .align 2
0038 .LCvfp:
0039 .word vfp_vector