When saving a context on arm call the vfp handler

When adding kernel VFP support on arm a comparison instruction was
removed, however the branch to vfp_save_state was still conditional.
Remove the conditional check and always call into vfp_save_state as
it could cause unexpected results otherwise.

Sponsored by:	Arm Ltd
This commit is contained in:
Andrew Turner 2023-02-20 12:22:11 +00:00
parent 8aad241ed0
commit 24abb6b821
2 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ ENTRY(cpu_switch)
ldr r3, [r10, #(TD_PCB)]
mov r1, r3
mov r0, r10
blne _C_LABEL(vfp_save_state)
bl _C_LABEL(vfp_save_state)
#endif
/*

View File

@ -101,7 +101,7 @@ ENTRY(savectx)
#ifdef VFP
mov r1, r0
mov r0, #0
blne _C_LABEL(vfp_save_state)
bl _C_LABEL(vfp_save_state)
#endif
add sp, sp, #4;
ldmfd sp!, {pc}