Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-10 11:10:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6bde1e54dc6b1f15f659b8c0b90392feb8960672
6bde1e54
1 parent
e49a8683
research st, add stack alloc commnets.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
7 行增加
和
0 行删除
trunk/research/st/sched.c
trunk/research/st/sched.c
查看文件 @
6bde1e5
...
...
@@ -546,6 +546,13 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
/* Allocate thread object and per-thread data off the stack */
#if defined (MD_STACK_GROWS_DOWN)
sp
=
stack
->
stk_top
;
/*
* The stack segment is split in the middle. The upper half is used
* as backing store for the register stack which grows upward.
* The lower half is used for the traditional memory stack which
* grows downward. Both stacks start in the middle and grow outward
* from each other.
*/
sp
=
sp
-
(
ST_KEYS_MAX
*
sizeof
(
void
*
));
ptds
=
(
void
**
)
sp
;
sp
=
sp
-
sizeof
(
_st_thread_t
);
...
...
请
注册
或
登录
后发表评论