mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +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);
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue