source: rtems/cpukit/score/cpu/or1k/or1k-exception-frame-print.c @ ab77827

Last change on this file since ab77827 was 94d45f6, checked in by Hesham ALMatary <heshamelmatary@…>, on Aug 12, 2014 at 3:57:42 PM

Add support for OpenRISC - Fixed issues

This work is based on the old or32 port (that has been
removed back in 2005) authored by Chris Ziomkowski. The patch includes the
basic functions every port should implement like: context switch, exception
handling, OpenRISC ABI and machine definitions and configurations.

  • Property mode set to 100644
File size: 510 bytes
Line 
1/*
2 * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com>
3 *
4 * The license and distribution terms for this file may be
5 * found in the file LICENSE in this distribution or at
6 * http://www.rtems.org/license/LICENSE.
7 */
8
9#ifdef HAVE_CONFIG_H
10  #include "config.h"
11#endif
12
13#include <rtems/score/cpu.h>
14#include <rtems/bspIo.h>
15
16void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
17{
18  uint32_t i;
19  for ( i = 0; i < 32; ++i ) {
20      printk( "r%02i = 0x%016x\n",i, frame->r[i]);
21  }
22}
Note: See TracBrowser for help on using the repository browser.