diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-13 15:31:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-13 15:31:26 +0000 |
commit | 421de422e496c48fdb1aa9cd5711729c5d702f32 (patch) | |
tree | b73222a61ec92e40f3e764da1ec0b08df9dd7546 /nuttx/arch/z16/src/common/up_registerdump.c | |
parent | cbb53cff763928f52d5d4851d9993b0b0fc73d8a (diff) | |
download | px4-nuttx-421de422e496c48fdb1aa9cd5711729c5d702f32.tar.gz px4-nuttx-421de422e496c48fdb1aa9cd5711729c5d702f32.tar.bz2 px4-nuttx-421de422e496c48fdb1aa9cd5711729c5d702f32.zip |
Fix Z16F context structure
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@556 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/z16/src/common/up_registerdump.c')
-rw-r--r-- | nuttx/arch/z16/src/common/up_registerdump.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/nuttx/arch/z16/src/common/up_registerdump.c b/nuttx/arch/z16/src/common/up_registerdump.c index 0b1f33f24..5164dd0a6 100644 --- a/nuttx/arch/z16/src/common/up_registerdump.c +++ b/nuttx/arch/z16/src/common/up_registerdump.c @@ -76,16 +76,15 @@ #ifdef CONFIG_ARCH_STACKDUMP static void up_registerdump(void) { - if (current_regs) - { - lldbg("AF: %04x I: %04x\n", - current_regs[XCPT_AF], current_regs[XCPT_I]); - lldbg("BC: %04x DE: %04x HL: %04x\n", - current_regs[XCPT_BC], current_regs[XCPT_DE], current_regs[XCPT_HL]); - lldbg("IX: %04x IY: %04x\n", - current_regs[XCPT_IX], current_regs[XCPT_IY]); - lldbg("SP: %04x PC: $04x\n" - current_regs[XCPT_SP], current_regs[XCPT_PC]); - } + uint32 *regs32 = (uint32*)current_regs; + lldbg("R0 :%08x R1 :%08x R2 :%08x R3 :%08x " + "R4 :%08x R5 :%08x R6 :%08x R7 :%08x\n" + regs32[REG_R0/2], regs32[REG_R1/2], regs32[REG_R2/2], regs32[REG_R3/2], + regs32[REG_R4/2], regs32[REG_R5/2], regs32[REG_R6/2], regs32[REG_R7/2]); + lldbg("R8 :%08x R9 :%08x R10:%08x R11:%08x R12:%08x R13:%08x\n" + regs32[REG_R8/2], regs32[REG_R9/2], regs32[REG_R10/2], regs3[REG_R11/2], + regs32[REG_R12/2], regs32[REG_R13/2]); + lldbg("FP :%08x SP :%08x FLG:%04x\n" + regs32[REG_R14/2], regs32[REG_R15/2], current_regs[REG_FLAGS]); } #endif |