mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-11-04 18:52:31 -05:00
Add support for Vector context save support on RISC-V (#1260)
port: riscv: Add vector context save support
This commit is contained in:
parent
b9aa064591
commit
0030d609a4
3 changed files with 144 additions and 5 deletions
|
|
@ -192,6 +192,7 @@ definitions. */
|
|||
* x5
|
||||
* portTASK_RETURN_ADDRESS
|
||||
* [FPU registers (when enabled/available) go here]
|
||||
* [VPU registers (when enabled/available) go here]
|
||||
* [chip specific registers go here]
|
||||
* mstatus
|
||||
* pxCode
|
||||
|
|
@ -233,6 +234,14 @@ chip_specific_stack_frame: /* First add any chip specific registers
|
|||
or t0, t0, t1
|
||||
#endif
|
||||
|
||||
#if( configENABLE_VPU == 1 )
|
||||
/* Mark the VPU as clean in the mstatus value. */
|
||||
li t1, ~MSTATUS_VS_MASK
|
||||
and t0, t0, t1
|
||||
li t1, MSTATUS_VS_CLEAN
|
||||
or t0, t0, t1
|
||||
#endif
|
||||
|
||||
addi a0, a0, -portWORD_SIZE
|
||||
store_x t0, 0(a0) /* mstatus onto the stack. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue