mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 13:01:57 -04:00
RISC-V: refine fpu reg context offset
The index 0 and 1 are general register which should depends on _XLEN_. Signed-off-by: wangfei_chen <wangfei_chen@realsil.com.cn>
This commit is contained in:
parent
bb47bc02f2
commit
32d189d46b
|
@ -103,7 +103,7 @@
|
|||
.macro portcontexSAVE_FPU_CONTEXT
|
||||
addi sp, sp, -( portFPU_CONTEXT_SIZE )
|
||||
/* Store the FPU registers. */
|
||||
store_f f0, 2 * portFPU_REG_SIZE( sp )
|
||||
store_f f0, 2 * portWORD_SIZE( sp )
|
||||
store_f f1, 3 * portFPU_REG_SIZE( sp )
|
||||
store_f f2, 4 * portFPU_REG_SIZE( sp )
|
||||
store_f f3, 5 * portFPU_REG_SIZE( sp )
|
||||
|
@ -142,7 +142,7 @@ store_x t0, 34 * portFPU_REG_SIZE( sp )
|
|||
|
||||
.macro portcontextRESTORE_FPU_CONTEXT
|
||||
/* Restore the FPU registers. */
|
||||
load_f f0, 2 * portFPU_REG_SIZE( sp )
|
||||
load_f f0, 2 * portWORD_SIZE( sp )
|
||||
load_f f1, 3 * portFPU_REG_SIZE( sp )
|
||||
load_f f2, 4 * portFPU_REG_SIZE( sp )
|
||||
load_f f3, 5 * portFPU_REG_SIZE( sp )
|
||||
|
|
Loading…
Reference in a new issue