mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
research st, remove the support of MD_STACK_GROWS_UP
This commit is contained in:
parent
340464ed56
commit
ae8b3e3c00
1 changed files with 0 additions and 12 deletions
|
@ -556,18 +556,6 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
|
||||||
sp = sp - ((unsigned long)sp & 0x3f);
|
sp = sp - ((unsigned long)sp & 0x3f);
|
||||||
}
|
}
|
||||||
stack->sp = sp - _ST_STACK_PAD_SIZE;
|
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
|
#else
|
||||||
#error Unknown OS
|
#error Unknown OS
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue