fix arm FPSCR typos in comments.

This commit is contained in:
Oki Minabe 2022-02-17 00:01:00 +09:00 committed by Xiang Xiao
parent 7675be7a09
commit c1ea37742b
12 changed files with 36 additions and 36 deletions

View File

@ -87,11 +87,11 @@ arm_fullcontextrestore:
#endif
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#endif
#ifdef CONFIG_BUILD_KERNEL

View File

@ -80,11 +80,11 @@ arm_restorefpu:
#endif
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
bx lr
.size arm_restorefpu, .-arm_restorefpu

View File

@ -84,10 +84,10 @@ arm_savefpu:
#endif
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
bx lr

View File

@ -115,10 +115,10 @@ arm_saveusercontext:
#endif
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#endif

View File

@ -87,10 +87,10 @@ arm_savefpu:
vstmia r1!, {s0-s31} /* Save the full FP context */
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#else
/* Store all floating point registers */
@ -150,7 +150,7 @@ arm_savefpu:
/* Store the floating point control and status register */
fmrx r2, fpscr /* Fetch the FPCSR */
fmrx r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#endif
bx lr
@ -193,11 +193,11 @@ arm_restorefpu:
vldmia r1!, {s0-s31} /* Restore the full FP context */
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#else
/* Load all floating point registers Registers are loaded in numeric order,
* s0, s1, ... in increasing address order.
@ -257,11 +257,11 @@ arm_restorefpu:
#endif
/* Load the floating point control and status register. r1 points t
* the address of the FPCSR register.
* the address of the FPSCR register.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
fmxr fpscr, r2 /* Restore the FPCSR */
fmxr fpscr, r2 /* Restore the FPSCR */
#endif
bx lr

View File

@ -86,11 +86,11 @@ arm_fullcontextrestore:
#endif
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#endif
#ifdef CONFIG_BUILD_PROTECTED

View File

@ -80,11 +80,11 @@ arm_restorefpu:
#endif
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
bx lr
.size arm_restorefpu, .-arm_restorefpu

View File

@ -84,10 +84,10 @@ arm_savefpu:
#endif
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
bx lr

View File

@ -114,10 +114,10 @@ arm_saveusercontext:
#endif
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#endif

View File

@ -87,10 +87,10 @@ arm_savefpu:
vstmia r1!, {s0-s31} /* Save the full FP context */
/* Store the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
vmrs r2, fpscr /* Fetch the FPCSR */
vmrs r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#else
/* Store all floating point registers */
@ -150,7 +150,7 @@ arm_savefpu:
/* Store the floating point control and status register */
fmrx r2, fpscr /* Fetch the FPCSR */
fmrx r2, fpscr /* Fetch the FPSCR */
str r2, [r1], #4 /* Save the floating point control and status register */
#endif
bx lr
@ -193,11 +193,11 @@ arm_restorefpu:
vldmia r1!, {s0-s31} /* Restore the full FP context */
/* Load the floating point control and status register. At the end of the
* vstmia, r1 will point to the FPCSR storage location.
* vstmia, r1 will point to the FPSCR storage location.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#else
/* Load all floating point registers Registers are loaded in numeric order,
* s0, s1, ... in increasing address order.
@ -257,11 +257,11 @@ arm_restorefpu:
#endif
/* Load the floating point control and status register. r1 points t
* the address of the FPCSR register.
* the address of the FPSCR register.
*/
ldr r2, [r1], #4 /* Fetch the floating point control and status register */
fmxr fpscr, r2 /* Restore the FPCSR */
fmxr fpscr, r2 /* Restore the FPSCR */
#endif
bx lr

View File

@ -77,10 +77,10 @@ setjmp:
vstmia r0!, {s16-s31} /* Save the callee-saved FP registers */
/* Store the floating point control and status register. At the end of the
* vstmia, r0 will point to the FPCSR storage location.
* vstmia, r0 will point to the FPSCR storage location.
*/
vmrs r1, fpscr /* Fetch the FPCSR */
vmrs r1, fpscr /* Fetch the FPSCR */
str r1, [r0], #4 /* Save the floating point control and status register */
/* DSA: don't need to inc r0 */
#endif /* CONFIG_ARCH_FPU */
@ -132,7 +132,7 @@ longjmp:
ldr r2, [r0], #4 /* Fetch the floating point control and status register */
/* DSA: don't need to inc r0 */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#endif /* CONFIG_ARCH_FPU */
mov r0, r1 /* return val */

View File

@ -77,10 +77,10 @@ setjmp:
vstmia r0!, {s16-s31} /* Save the callee-saved FP registers */
/* Store the floating point control and status register. At the end of the
* vstmia, r0 will point to the FPCSR storage location.
* vstmia, r0 will point to the FPSCR storage location.
*/
vmrs r1, fpscr /* Fetch the FPCSR */
vmrs r1, fpscr /* Fetch the FPSCR */
str r1, [r0], #4 /* Save the floating point control and status register */
/* DSA: don't need to inc r0 */
#endif /* CONFIG_ARCH_FPU */
@ -132,7 +132,7 @@ longjmp:
ldr r2, [r0], #4 /* Fetch the floating point control and status register */
/* DSA: don't need to inc r0 */
vmsr fpscr, r2 /* Restore the FPCSR */
vmsr fpscr, r2 /* Restore the FPSCR */
#endif /* CONFIG_ARCH_FPU */
mov r0, r1 /* return val */