diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:15:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-16 14:15:34 +0000 |
commit | 03a31e4a728883bf41bd6712d38dae413a9a41bc (patch) | |
tree | abe04d3d494a263aa46a4467603c8027dfa701e9 /nuttx/arch/z80/src/common/up_usestack.c | |
parent | b10830785275aac3667b88c2d1a90a5563bbdb49 (diff) | |
download | px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.gz px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.tar.bz2 px4-nuttx-03a31e4a728883bf41bd6712d38dae413a9a41bc.zip |
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2354 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z80/src/common/up_usestack.c')
-rw-r--r-- | nuttx/arch/z80/src/common/up_usestack.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/arch/z80/src/common/up_usestack.c b/nuttx/arch/z80/src/common/up_usestack.c index c73e99bc1..7f22e9ce6 100644 --- a/nuttx/arch/z80/src/common/up_usestack.c +++ b/nuttx/arch/z80/src/common/up_usestack.c @@ -38,11 +38,14 @@ ************************************************************/ #include <nuttx/config.h> + #include <sys/types.h> +#include <stdint.h> #include <sched.h> #include <debug.h> #include <nuttx/kmalloc.h> #include <nuttx/arch.h> + #include "up_internal.h" /************************************************************ @@ -99,7 +102,7 @@ int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) * referenced as positive word offsets from sp. */ - top_of_stack = (uint32)tcb->stack_alloc_ptr + stack_size - 4; + top_of_stack = (uint32_t)tcb->stack_alloc_ptr + stack_size - 4; /* The Arm7Tdmi stack must be aligned at word (4 byte) * boundaries. If necessary top_of_stack must be rounded @@ -107,7 +110,7 @@ int up_use_stack(_TCB *tcb, void *stack, size_t stack_size) */ top_of_stack &= ~3; - size_of_stack = top_of_stack - (uint32)tcb->stack_alloc_ptr + 4; + size_of_stack = top_of_stack - (uint32_t)tcb->stack_alloc_ptr + 4; /* Save the adjusted stack values in the _TCB */ |