Lines Matching +full:point +full:- +full:to +full:- +full:point
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 NetWinder Floating Point Emulator
7 Direct questions, comments to Scott Bambrough <scottb@netwinder.org>
14 /* This is the kernel's entry point into the floating point emulator.
15 It is called from the kernel with code similar to this:
24 strb r8, [r10, #TSK_USED_MATH] @ set current->used_math
27 ldr pc, [r4] @ Call FP emulator entry point
29 The kernel expects the emulator to return via one of two possible
30 points of return it passes to the emulator. The emulator, if
31 successful in its emulation, jumps to ret_from_exception (passed in
32 r9) and the kernel takes care of returning control from the trap to
33 the user code. If the emulator is unable to emulate the instruction,
37 On entry to the emulator r10 points to an area of private FP workspace
40 is used as a flag to detect the first time a process uses floating point,
49 2) It calls EmulateAll to emulate a floating point instruction.
53 the next instruction. If it is a floating point instruction, it
54 executes the instruction, without returning to user space. In this
55 way it repeatedly looks ahead and executes floating point instructions
56 until it encounters a non floating point instruction, at which time it
59 This is done to reduce the effect of the trap overhead on each
60 floating point instructions. GCC attempts to group floating point
61 instructions to allow the emulator to spread the cost of the trap over
62 several floating point instructions. */
64 #include <asm/asm-offsets.h>
68 mov r4, lr @ save the failure-return addresses
78 @ if condition code failed to match, next insn
102 @ We need to be prepared for the instructions at .Lx1 and .Lx2
103 @ to fault. Emit the appropriate exception gunk to fix things up.
118 @ Check whether the instruction is a co-processor instruction.
119 @ If yes, we need to call the relevant co-processor handler.
123 @ Emulators may wish to make use of the following registers:
124 @ r4 = PC value to resume execution after successful emulation
131 sub r4, r4, #4 @ ARM instruction at user PC - 4
142 @ Test if we need to give access to iWMMXt coprocessors
171 ldr_va pc, fp_enter, tmp=r4 @ Call FP module USR entry point