mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-30 23:18:37 -04:00
Continue work on Risc V port.
This commit is contained in:
parent
74d0d16aab
commit
baee711cb6
3 changed files with 45 additions and 12 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
#define CONTEXT_SIZE ( 28 * WORD_SIZE )
|
||||
|
||||
.global xPortStartScheduler
|
||||
.global xPortStartFirstTask
|
||||
.global vPortTrapHandler
|
||||
.extern pxCurrentTCB
|
||||
.extern handle_trap
|
||||
|
@ -46,7 +46,8 @@
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
.align 8
|
||||
xPortStartScheduler:
|
||||
xPortStartFirstTask:
|
||||
|
||||
lw sp, pxCurrentTCB /* Load pxCurrentTCB. */
|
||||
lw sp, 0( sp ) /* Read sp from first TCB member. */
|
||||
|
||||
|
@ -81,7 +82,7 @@ xPortStartScheduler:
|
|||
addi sp, sp, CONTEXT_SIZE
|
||||
csrs mstatus, 8 /* Enable machine interrupts. */
|
||||
csrs mie, 8 /* Enable soft interrupt. */
|
||||
ret
|
||||
ret
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue