Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:54

0001 #include <bsp.h>
0002 #include <rtems/bspIo.h>
0003 #include <libcpu/stackTrace.h>
0004 #include <bsp/bootcard.h>
0005 
0006 /*-------------------------------------------------------------------------+
0007 |         Function: bsp_reset
0008 |      Description: Reboot the PC.
0009 | Global Variables: None.
0010 |        Arguments: None.
0011 |          Returns: Nothing.
0012 +--------------------------------------------------------------------------*/
0013 
0014 void bsp_reset( rtems_fatal_source source, rtems_fatal_code code )
0015 {
0016   (void) source;
0017   (void) code;
0018 
0019   printk("Printing a stack trace for your convenience :-)\n");
0020   CPU_print_stack();
0021   /* shutdown and reboot */
0022 
0023 #if defined(mot_ppc_mvme2100)
0024   *(unsigned char*)0xffe00000 |= 0x80;
0025 #else
0026    /* Memory-mapped Port 92 PIB device access
0027    *(unsigned char*)0x80000092 |= 0x01;
0028    */
0029    outb(1, 0x92);
0030 
0031 #endif
0032    RTEMS_UNREACHABLE();
0033 } /* bsp_reset */