Skip to content

Commit 6de0d7a

Browse files
authored
Fix the pxTopcOfStack typo in the RISC-V ports. (#1030)
* Fix the pxTopcOfStack typo in the RISC-V ports. * Add a missing o to to
1 parent 4d4f8d0 commit 6de0d7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

portable/GCC/RISC-V/portASM.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ definitions. */
138138
* for the function is as per the other ports:
139139
* StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters );
140140
*
141-
* As per the standard RISC-V ABI pxTopcOfStack is passed in in a0, pxCode in
141+
* As per the standard RISC-V ABI pxTopOfStack is passed in in a0, pxCode in
142142
* a1, and pvParameters in a2. The new top of stack is passed out in a0.
143143
*
144144
* RISC-V maps registers to ABI names as follows (X1 to X31 integer registers
@@ -158,7 +158,7 @@ definitions. */
158158
* x18-27 s2-11 Saved registers Callee
159159
* x28-31 t3-6 Temporaries Caller
160160
*
161-
* The RISC-V context is saved t FreeRTOS tasks in the following stack frame,
161+
* The RISC-V context is saved to FreeRTOS tasks in the following stack frame,
162162
* where the global and thread pointers are currently assumed to be constant so
163163
* are not saved:
164164
*

portable/IAR/RISC-V/portASM.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ portUPDATE_MTIMER_COMPARE_REGISTER MACRO
147147
* for the function is as per the other ports:
148148
* StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters );
149149
*
150-
* As per the standard RISC-V ABI pxTopcOfStack is passed in in a0, pxCode in
150+
* As per the standard RISC-V ABI pxTopOfStack is passed in in a0, pxCode in
151151
* a1, and pvParameters in a2. The new top of stack is passed out in a0.
152152
*
153153
* RISC-V maps registers to ABI names as follows (X1 to X31 integer registers
@@ -167,7 +167,7 @@ portUPDATE_MTIMER_COMPARE_REGISTER MACRO
167167
* x18-27 s2-11 Saved registers Callee
168168
* x28-31 t3-6 Temporaries Caller
169169
*
170-
* The RISC-V context is saved t FreeRTOS tasks in the following stack frame,
170+
* The RISC-V context is saved to FreeRTOS tasks in the following stack frame,
171171
* where the global and thread pointers are currently assumed to be constant so
172172
* are not saved:
173173
*

0 commit comments

Comments
 (0)