source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/reboot.c @ cf599996

4.9
Last change on this file since cf599996 was cf599996, checked in by Joel Sherrill <joel.sherrill@…>, on May 8, 2009 at 6:22:51 PM

2009-05-08 Kate Feng <feng1@…>

PR1395/bsps

  • Updated the changes from RTEMS-4.8.0, which were made since Oct. 2007.
  • network/if_1GHz/if_wm.c: fixed some bugs in the 1GHz driver.
  • pci/pci_interface.c: + Enabled PCI "Read", "Read Line", and "Read Multiple" + Agressive Prefetch to improve the performance of the PCI based

applications (e.g. 1GHz NIC).

  • irq/BSP_irq.c : Replaced the irq/irq.c, and used GT_GPP_Value register to monitor the cause of the level sensitive interrupts. This unique solution solves various bugs in the 1GHz network drivers Fixed bugs in compute_pic_masks_from_prio()
  • pci/pci.c : Updated it to be consistent with the original pci.c
  • written by Eric Valette. There is no change in its function.
  • irq/irq_init.c : set defaultIrq->next_handler to be 0
  • for BSP_SHARED_HANDLER_SUPPORT.
  • Property mode set to 100644
File size: 587 bytes
Line 
1/* Copyright 2003, Shuchen Kate Feng <feng1@bnl.gov>,
2 *                    NSLS,Brookhaven National Laboratory
3 *
4 * Ported it from powerpc/shared/console/reboot.c for mvme5500
5 *
6 */
7
8#include <rtems.h>
9#include <bsp.h>
10#include <rtems/bspIo.h>
11#include <libcpu/io.h>
12#include <libcpu/stackTrace.h>
13
14void bsp_reset()
15{
16
17  printk("Printing a stack trace for your convenience :-)\n");
18  CPU_print_stack();
19
20  printk("RTEMS terminated; Rebooting ...\n");
21  /* Mvme5500 board reset : 2004 S. Kate Feng <feng1@bnl.gov>  */
22  out_8((volatile unsigned char*) (GT64x60_DEV1_BASE +2), 0x80);
23}
Note: See TracBrowser for help on using the repository browser.