Merge branch 'srs.master'
This commit is contained in:
commit
ccf1abbd8a
3
trunk/research/st/sched.c
Normal file → Executable file
3
trunk/research/st/sched.c
Normal file → Executable file
|
|
@ -596,8 +596,7 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
|
||||||
trd->context[0].__jmpbuf[0].__pc = (__ptr_t) _st_thread_main;
|
trd->context[0].__jmpbuf[0].__pc = (__ptr_t) _st_thread_main;
|
||||||
trd->context[0].__jmpbuf[0].__sp = stack->sp;
|
trd->context[0].__jmpbuf[0].__sp = stack->sp;
|
||||||
#else
|
#else
|
||||||
int ret_setjmp = 0;
|
if (MD_SETJMP((trd)->context)) {
|
||||||
if ((ret_setjmp = MD_SETJMP((trd)->context)) != 0) {
|
|
||||||
_st_thread_main();
|
_st_thread_main();
|
||||||
}
|
}
|
||||||
MD_GET_SP(trd) = (long) (stack->sp);
|
MD_GET_SP(trd) = (long) (stack->sp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user