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

Last change on this file was 80cf60e, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 15, 2020 at 7:48:32 AM

Canonicalize config.h include

Use the following variant which was already used by most source files:

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

  • Property mode set to 100644
File size: 535 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#include <inttypes.h>
16
17void _CPU_Exception_frame_print( const CPU_Exception_frame *frame )
18{
19  int i;
20
21  for ( i = 0; i < 32; ++i ) {
22      printk( "r%02i = 0x%016" PRIx32 "\n",i, frame->r[i]);
23  }
24}
Note: See TracBrowser for help on using the repository browser.