source: rtems/c/src/lib/libbsp/powerpc/qemuppc/startup/bsppanic.c @ 1c193a2

5
Last change on this file since 1c193a2 was 1c193a2, checked in by Sebastian Huber <sebastian.huber@…>, on 11/21/17 at 10:43:13

powerpc: Replace BSP_panic() with rtems_panic()

Due to a new rtems_panic() implementation, it is possible to replace the
PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic()
implementations.

Close #3245.

  • Property mode set to 100644
File size: 268 bytes
Line 
1#include <rtems.h>
2#include <rtems/bspIo.h>
3
4static void
5__outb(int port, unsigned char v)
6{
7  *((volatile unsigned char *)(0x80000000 + port)) = v;
8}
9
10void _BSP_Fatal_error(unsigned int v)
11{
12  printk("%s PANIC ERROR %x\n",_RTEMS_version, v);
13  __outb (0x92, 0x01);
14}
Note: See TracBrowser for help on using the repository browser.