Changeset 2f28a03 in rtems


Ignore:
Timestamp:
Jan 7, 2013, 12:42:09 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2570a2a8
Parents:
04f399d
git-author:
Sebastian Huber <sebastian.huber@…> (01/07/13 12:42:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/13 14:07:42)
Message:

arm: Implement CPU_Exception_frame_print()

Location:
cpukit/score/cpu/arm
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/Makefile.am

    r04f399d r2f28a03  
    2727libscorecpu_a_SOURCES += armv7m-context-switch.c
    2828libscorecpu_a_SOURCES += armv7m-exception-default.c
    29 libscorecpu_a_SOURCES += armv7m-exception-frame-print.c
    3029libscorecpu_a_SOURCES += armv7m-exception-handler-get.c
    3130libscorecpu_a_SOURCES += armv7m-exception-handler-set.c
  • cpukit/score/cpu/arm/arm-exception-frame-print.c

    r04f399d r2f28a03  
    11/*
    2  * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
     2 * Copyright (c) 2012-2013 embedded brains GmbH.  All rights reserved.
    33 *
    44 *  embedded brains GmbH
     
    1818
    1919#include <rtems/score/cpu.h>
    20 
    21 #ifdef ARM_MULTILIB_ARCH_V4
     20#include <rtems/bspIo.h>
    2221
    2322void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
    2423{
    25   /* TODO */
     24  printk(
     25    "\n"
     26    "R0   = 0x%08x R8  = 0x%08x\n"
     27    "R1   = 0x%08x R9  = 0x%08x\n"
     28    "R2   = 0x%08x R10 = 0x%08x\n"
     29    "R3   = 0x%08x R11 = 0x%08x\n"
     30    "R4   = 0x%08x R12 = 0x%08x\n"
     31    "R5   = 0x%08x SP  = 0x%08x\n"
     32    "R6   = 0x%08x LR  = 0x%08x\n"
     33    "R7   = 0x%08x PC  = 0x%08x\n"
     34#if defined(ARM_MULTILIB_ARCH_V4)
     35    "CPSR = 0x%08x VEC = 0x%08x\n",
     36#elif defined(ARM_MULTILIB_ARCH_V7M)
     37    "XPSR = 0x%08x VEC = 0x%08x\n",
     38#endif
     39    frame->register_r0,
     40    frame->register_r1,
     41    frame->register_r2,
     42    frame->register_r3,
     43    frame->register_r4,
     44    frame->register_r5,
     45    frame->register_r6,
     46    frame->register_r7,
     47    frame->register_r8,
     48    frame->register_r9,
     49    frame->register_r10,
     50    frame->register_r11,
     51    frame->register_r12,
     52    frame->register_sp,
     53    frame->register_lr,
     54    frame->register_pc,
     55#if defined(ARM_MULTILIB_ARCH_V4)
     56    frame->register_cpsr,
     57#elif defined(ARM_MULTILIB_ARCH_V7M)
     58    frame->register_xpsr,
     59#endif
     60    frame->vector
     61  );
    2662}
    27 
    28 #endif /* ARM_MULTILIB_ARCH_V4 */
Note: See TracChangeset for help on using the changeset viewer.