Skip to content

Commit 1198dab

Browse files
committed
port: riscv: Fix a few typos
1 parent 621e8fb commit 1198dab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

portable/GCC/RISC-V/portContext.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
.extern pxCriticalNesting
9898
/*-----------------------------------------------------------*/
9999

100-
.macro portcontexSAVE_FPU_CONTEXT_INTERNAL
100+
.macro portcontextSAVE_FPU_CONTEXT_INTERNAL
101101
/* Check if the FPU has been used, if it has not, skip the context save */
102102
srl t1, t0, MSTATUS_FS_USED_OFFSET
103103
andi t1, t1, 1
@@ -147,7 +147,7 @@ csrw mstatus, t0
147147
.endm
148148
/*-----------------------------------------------------------*/
149149

150-
.macro portasmRESTORE_FPU_CONTEXT_INTERNAL
150+
.macro portcontextRESTORE_FPU_CONTEXT_INTERNAL
151151
/* Restore fp registers from context */
152152
load_f f0, portFPUREG_OFFSET(0)( sp )
153153
load_f f1, portFPUREG_OFFSET(0)( sp )
@@ -228,7 +228,7 @@ store_x t0, portCRITICAL_NESTING_OFFSET * portWORD_SIZE( sp ) /* Store the criti
228228
csrr t0, mstatus /* Required for MPIE bit. */
229229
store_x t0, portMSTATUS_OFFSET * portWORD_SIZE( sp )
230230
#ifdef portasmSTORE_FPU_CONTEXT
231-
portcontexSAVE_FPU_CONTEXT_INTERNAL
231+
portcontextSAVE_FPU_CONTEXT_INTERNAL
232232
#endif /* ifdef portasmSTORE_FPU_CONTEXT */
233233

234234

@@ -271,7 +271,7 @@ csrw mepc, t0
271271
portasmRESTORE_ADDITIONAL_REGISTERS
272272

273273
#ifdef portasmSTORE_FPU_CONTEXT
274-
portasmRESTORE_FPU_CONTEXT_INTERNAL
274+
portcontextRESTORE_FPU_CONTEXT_INTERNAL
275275
#endif /* ifdef portasmSTORE_FPU_CONTEXT */
276276

277277
/* Load mstatus with the interrupt enable bits used by the task. */

0 commit comments

Comments
 (0)