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_stackdump.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_stackdump.c')
-rw-r--r-- | nuttx/arch/z80/src/common/up_stackdump.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/nuttx/arch/z80/src/common/up_stackdump.c b/nuttx/arch/z80/src/common/up_stackdump.c index 00c923aa9..62c4ee24c 100644 --- a/nuttx/arch/z80/src/common/up_stackdump.c +++ b/nuttx/arch/z80/src/common/up_stackdump.c @@ -1,7 +1,7 @@ /**************************************************************************** * common/up_stackdump.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -39,7 +39,7 @@ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdint.h> #include <debug.h> #include "up_arch.h" @@ -80,9 +80,9 @@ static void up_stackdump(void) { _TCB *rtcb = (_TCB*)g_readytorun.head; - uint16 sp = up_getsp(); - uint16 stack_base = (uint16)rtcb->adj_stack_ptr; - uint16 stack_size = (uint16)rtcb->adj_stack_size; + uint16_t) sp = up_getsp(); + uint16_t) stack_base = (uint16_t))rtcb->adj_stack_ptr; + uint16_t) stack_size = (uint16_t))rtcb->adj_stack_size; lldbg("stack_base: %04x\n", stack_base); lldbg("stack_size: %04x\n", stack_size); @@ -95,11 +95,11 @@ static void up_stackdump(void) } else { - uint16 stack = sp & ~0x0f; + uint16_t) stack = sp & ~0x0f; - for (stack = sp & ~0x0f; stack < stack_base; stack += 8*sizeof(uint16)) + for (stack = sp & ~0x0f; stack < stack_base; stack += 8*sizeof(uint16_t))) { - uint16 *ptr = (uint16*)stack; + uint16_t) *ptr = (uint16_t)*)stack; lldbg("%04x: %04x %04x %04x %04x %04x %04x %04x %04x\n", stack, ptr[0], ptr[1], ptr[2], ptr[3], ptr[4], ptr[5], ptr[6], ptr[7]); |