Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  linux/arch/arm/vfp/entry.S
0004  *
0005  *  Copyright (C) 2004 ARM Limited.
0006  *  Written by Deep Blue Solutions Limited.
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