source: rtems/c/src/lib/libbsp/powerpc/gen5200/startup/bspreset.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 572 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#include <rtems.h>
11#include <bsp.h>
12#include <bsp/mpc5200.h>
13#include <bsp/bootcard.h>
14
15void bsp_reset( void )
16{
17  #if (BENCHMARK_IRQ_PROCESSING == 1)
18  {
19    BSP_IRQ_Benchmarking_Report();
20  }
21  #endif
22
23  /*
24   * Now reset the CPU
25   */
26  mpc5200.gpt[0].count_in = 0xf;
27  mpc5200.gpt[0].emsel = 0x9004;
28
29  while(1) ;
30}
Note: See TracBrowser for help on using the repository browser.