ARM: vfp: rename check_exception to vfp_hw_state_valid
Rename this branch to more accurately reflect why its taken, rather than what the following code does. It is the only caller of this code. This helps to clarify following changes, yet this change results in no actual code change. Document the VFP hardware state at the target of this branch. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -81,11 +81,8 @@ ENTRY(vfp_support_entry)
|
|||||||
orr r1, r1, #FPEXC_EN @ user FPEXC has the enable bit set
|
orr r1, r1, #FPEXC_EN @ user FPEXC has the enable bit set
|
||||||
ldr r4, [r3, r11, lsl #2] @ vfp_current_hw_state pointer
|
ldr r4, [r3, r11, lsl #2] @ vfp_current_hw_state pointer
|
||||||
bic r5, r1, #FPEXC_EX @ make sure exceptions are disabled
|
bic r5, r1, #FPEXC_EX @ make sure exceptions are disabled
|
||||||
cmp r4, r10
|
cmp r4, r10 @ this thread owns the hw context?
|
||||||
beq check_for_exception @ we are returning to the same
|
beq vfp_hw_state_valid
|
||||||
@ process, so the registers are
|
|
||||||
@ still there. In this case, we do
|
|
||||||
@ not want to drop a pending exception.
|
|
||||||
|
|
||||||
VFPFMXR FPEXC, r5 @ enable VFP, disable any pending
|
VFPFMXR FPEXC, r5 @ enable VFP, disable any pending
|
||||||
@ exceptions, so we can get at the
|
@ exceptions, so we can get at the
|
||||||
@@ -132,7 +129,8 @@ no_old_VFP_process:
|
|||||||
#endif
|
#endif
|
||||||
VFPFMXR FPSCR, r5 @ restore status
|
VFPFMXR FPSCR, r5 @ restore status
|
||||||
|
|
||||||
check_for_exception:
|
@ The context stored in the VFP hardware is up to date with this thread
|
||||||
|
vfp_hw_state_valid:
|
||||||
tst r1, #FPEXC_EX
|
tst r1, #FPEXC_EX
|
||||||
bne process_exception @ might as well handle the pending
|
bne process_exception @ might as well handle the pending
|
||||||
@ exception before retrying branch
|
@ exception before retrying branch
|
||||||
|
Reference in New Issue
Block a user