winlin

research st, remove the support of MD_STACK_GROWS_UP

@@ -556,18 +556,6 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl @@ -556,18 +556,6 @@ _st_thread_t *st_thread_create(void *(*start)(void *arg), void *arg, int joinabl
556 sp = sp - ((unsigned long)sp & 0x3f); 556 sp = sp - ((unsigned long)sp & 0x3f);
557 } 557 }
558 stack->sp = sp - _ST_STACK_PAD_SIZE; 558 stack->sp = sp - _ST_STACK_PAD_SIZE;
559 -#elif defined (MD_STACK_GROWS_UP)  
560 - sp = stack->stk_bottom;  
561 - thread = (_st_thread_t *) sp;  
562 - sp = sp + sizeof(_st_thread_t);  
563 - ptds = (void **) sp;  
564 - sp = sp + (ST_KEYS_MAX * sizeof(void *));  
565 -  
566 - /* Make stack 64-byte aligned */  
567 - if ((unsigned long)sp & 0x3f) {  
568 - sp = sp + (0x40 - ((unsigned long)sp & 0x3f));  
569 - }  
570 - stack->sp = sp + _ST_STACK_PAD_SIZE;  
571 #else 559 #else
572 #error Unknown OS 560 #error Unknown OS
573 #endif 561 #endif