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-09 12:05:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae8b3e3c00f8d20510329a6b1907bd131d27fd90
ae8b3e3c
1 parent
340464ed
research st, remove the support of MD_STACK_GROWS_UP
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
0 行增加
和
12 行删除
trunk/research/st/sched.c
trunk/research/st/sched.c
查看文件 @
ae8b3e3
...
...
@@ -556,18 +556,6 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
sp
=
sp
-
((
unsigned
long
)
sp
&
0x3f
);
}
stack
->
sp
=
sp
-
_ST_STACK_PAD_SIZE
;
#elif defined (MD_STACK_GROWS_UP)
sp
=
stack
->
stk_bottom
;
thread
=
(
_st_thread_t
*
)
sp
;
sp
=
sp
+
sizeof
(
_st_thread_t
);
ptds
=
(
void
**
)
sp
;
sp
=
sp
+
(
ST_KEYS_MAX
*
sizeof
(
void
*
));
/* Make stack 64-byte aligned */
if
((
unsigned
long
)
sp
&
0x3f
)
{
sp
=
sp
+
(
0x40
-
((
unsigned
long
)
sp
&
0x3f
));
}
stack
->
sp
=
sp
+
_ST_STACK_PAD_SIZE
;
#else
#error Unknown OS
#endif
...
...
请
注册
或
登录
后发表评论