You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
620 B
27 lines
620 B
5 months ago
|
/*
|
||
|
* Copyright (c) 2006-2022, RT-Thread Development Team
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*
|
||
|
* Change Logs:
|
||
|
* Date Author Notes
|
||
|
* 2022-10-19 RT-Thread the first version
|
||
|
*/
|
||
|
|
||
|
#include "cpuport.h"
|
||
|
#include "stackframe.h"
|
||
|
#include "asm-generic.h"
|
||
|
|
||
|
START_POINT(_rt_thread_entry)
|
||
|
LOAD ra, (sp) /* thread exit */
|
||
|
addi sp, sp, 8
|
||
|
LOAD a0, (sp) /* parameter */
|
||
|
addi sp, sp, 8
|
||
|
LOAD t0, (sp) /* tentry */
|
||
|
addi sp, sp, 8
|
||
|
mv s1, ra
|
||
|
jalr t0
|
||
|
jalr s1
|
||
|
j . /* never here */
|
||
|
START_POINT_END(_rt_thread_entry)
|