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:04:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
340464ed56a3e0e803dbc1eb788ff90692dc8339
340464ed
1 parent
a27c3dca
research st, remove __ia64__ cpu support
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
1 行增加
和
35 行删除
trunk/research/st/common.h
trunk/research/st/sched.c
trunk/research/st/srs.c
trunk/research/st/common.h
查看文件 @
340464e
...
...
@@ -144,9 +144,6 @@ typedef struct _st_stack {
char
*
stk_bottom
;
/* Lowest address of stack's usable portion */
char
*
stk_top
;
/* Highest address of stack's usable portion */
void
*
sp
;
/* Stack pointer from C's point of view */
#ifdef __ia64__
void
*
bsp
;
/* Register stack backing store pointer */
#endif
}
_st_stack_t
;
...
...
@@ -349,11 +346,7 @@ extern _st_eventsys_t *_st_eventsys;
#define ST_UTIME_NO_TIMEOUT ((st_utime_t) -1LL)
#endif
#ifndef __ia64__
#define ST_DEFAULT_STACK_SIZE (64*1024)
#else
#define ST_DEFAULT_STACK_SIZE (128*1024)
/* Includes register stack size */
#endif
#define ST_DEFAULT_STACK_SIZE (64*1024)
#ifndef ST_KEYS_MAX
#define ST_KEYS_MAX 16
...
...
trunk/research/st/sched.c
查看文件 @
340464e
...
...
@@ -532,9 +532,6 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
_st_stack_t
*
stack
;
void
**
ptds
;
char
*
sp
;
#ifdef __ia64__
char
*
bsp
;
#endif
/* Adjust stack size */
if
(
stk_size
==
0
)
{
...
...
@@ -549,22 +546,6 @@ _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
;
#ifdef __ia64__
/*
* 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
-=
(
stk_size
>>
1
);
bsp
=
sp
;
/* Make register stack 64-byte aligned */
if
((
unsigned
long
)
bsp
&
0x3f
)
{
bsp
=
bsp
+
(
0x40
-
((
unsigned
long
)
bsp
&
0x3f
));
}
stack
->
bsp
=
bsp
+
_ST_STACK_PAD_SIZE
;
#endif
sp
=
sp
-
(
ST_KEYS_MAX
*
sizeof
(
void
*
));
ptds
=
(
void
**
)
sp
;
sp
=
sp
-
sizeof
(
_st_thread_t
);
...
...
@@ -600,11 +581,7 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
thread
->
start
=
start
;
thread
->
arg
=
arg
;
#ifndef __ia64__
_ST_INIT_CONTEXT
(
thread
,
stack
->
sp
,
_st_thread_main
);
#else
_ST_INIT_CONTEXT
(
thread
,
stack
->
sp
,
stack
->
bsp
,
_st_thread_main
);
#endif
/* If thread is joinable, allocate a termination condition variable */
if
(
joinable
)
{
...
...
trunk/research/st/srs.c
查看文件 @
340464e
...
...
@@ -11,10 +11,6 @@
#include "public.h"
#if defined(__ia64__)
#error "IA64 not supported"
#endif
#define srs_trace(msg, ...) printf(msg, ##__VA_ARGS__);printf("\n")
int
io_port
=
1990
;
...
...
请
注册
或
登录
后发表评论