fixed stack align issues.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1900 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
wuyangyong 2011-12-31 20:21:46 +00:00
parent 6b31d549c7
commit 1097104c7f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter,
unsigned long *stk; unsigned long *stk;
struct stack_contex_fpu * stack_contex_fpu; struct stack_contex_fpu * stack_contex_fpu;
stk = (unsigned long *)stack_addr; stk = (unsigned long *)stack_addr + sizeof(rt_uint32_t);
stk -= sizeof(struct stack_contex_fpu); stk -= sizeof(struct stack_contex_fpu);
stack_contex_fpu = (struct stack_contex_fpu *)stk; stack_contex_fpu = (struct stack_contex_fpu *)stk;