547c94c62cd3a66a9b112abbacc3ec59c85b0290
[sfrench/cifs-2.6.git] / arch / arm / vfp / entry.S
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
15 @ VFP entry point.
16 @
17 @  r0  = instruction opcode (32-bit ARM or two 16-bit Thumb)
18 @  r2  = PC value to resume execution after successful emulation
19 @  r9  = normal "successful" return address
20 @  r10 = this threads thread_info structure
21 @  lr  = unrecognised instruction return address
22 @  IRQs enabled.
23 @
24 ENTRY(do_vfp)
25         mov     r1, r0                          @ pass trigger opcode via R1
26         mov     r0, sp                          @ pass struct pt_regs via R0
27         bl      vfp_support_entry               @ dispatch the VFP exception
28         cmp     r0, #0                          @ handled successfully?
29         reteq   r9                              @ then use R9 as return address
30         ret     lr                              @ pass to undef handler
31 ENDPROC(do_vfp)