diff options
author | Hesham ALMatary <heshamelmatary@gmail.com> | 2014-08-12 10:57:42 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-08-12 13:40:45 -0500 |
commit | 94d45f6ffe22c640566ddc4432adcb97ab6c907f (patch) | |
tree | b942d29910c969239427a139bc6f5ff50efe6edc /cpukit/score/cpu/or1k/or1k-exception-frame-print.c | |
parent | bsp/lpc24xx: Add LPC40XX variants (diff) | |
download | rtems-94d45f6ffe22c640566ddc4432adcb97ab6c907f.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/cpu/or1k/or1k-exception-frame-print.c')
-rw-r--r-- | cpukit/score/cpu/or1k/or1k-exception-frame-print.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/score/cpu/or1k/or1k-exception-frame-print.c b/cpukit/score/cpu/or1k/or1k-exception-frame-print.c new file mode 100644 index 0000000000..75e169c840 --- /dev/null +++ b/cpukit/score/cpu/or1k/or1k-exception-frame-print.c @@ -0,0 +1,22 @@ +/* + * COPYRIGHT (c) 2014 Hesham ALMatary <heshamelmatary@gmail.com> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif + +#include <rtems/score/cpu.h> +#include <rtems/bspIo.h> + +void _CPU_Exception_frame_print( const CPU_Exception_frame *frame ) +{ + uint32_t i; + for ( i = 0; i < 32; ++i ) { + printk( "r%02i = 0x%016x\n",i, frame->r[i]); + } +} |