diff options
| author | wuyangyong <[email protected]> | 2011-12-31 20:21:46 +0000 |
|---|---|---|
| committer | wuyangyong <[email protected]> | 2011-12-31 20:21:46 +0000 |
| commit | 1097104c7fe822cf6b9a24e5b68e302c9bacced2 (patch) | |
| tree | eecdad231793f29094b21fa10d531b0594c3baeb /libcpu/arm/cortex-m4 | |
| parent | 6b31d549c7c916582042308cc9cfcc6bb1b19179 (diff) | |
fixed stack align issues.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1900 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'libcpu/arm/cortex-m4')
| -rw-r--r-- | libcpu/arm/cortex-m4/cpuport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/arm/cortex-m4/cpuport.c b/libcpu/arm/cortex-m4/cpuport.c index 63f10b4daa..a282a3be77 100644 --- a/libcpu/arm/cortex-m4/cpuport.c +++ b/libcpu/arm/cortex-m4/cpuport.c @@ -67,7 +67,7 @@ rt_uint8_t *rt_hw_stack_init(void *tentry, void *parameter, unsigned long *stk; 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); stack_contex_fpu = (struct stack_contex_fpu *)stk; |
