OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i960/] [cvme961/] [startup/] [bspclean.c] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *  This routine is used to return control to the NINDY monitor
3
 *  and is automatically invoked at shutdown.
4
 *
5
 *  NOTES:  DOES NOT RETURN!!!
6
 *
7
 *  COPYRIGHT (c) 1989-1999.
8
 *  On-Line Applications Research Corporation (OAR).
9
 *
10
 *  The license and distribution terms for this file may be
11
 *  found in the file LICENSE in this distribution or at
12
 *  http://www.OARcorp.com/rtems/license.html.
13
 *
14
 *  $Id: bspclean.c,v 1.2 2001-09-27 11:59:57 chris Exp $
15
 */
16
 
17
#include <rtems.h>
18
#include "bsp.h"
19
 
20
void bsp_cleanup( void )
21
{
22
  extern void start( void  );
23
 
24
  register volatile void *start_addr = 0;
25
 
26
  asm volatile( "mov   0,g0;"
27
                "fmark ;"
28
                "syncf ;"
29
                ".word    0xfeedface ; "
30
                "bx       (%0)" : "=r" (start_addr) : "0" (start_addr) );
31
 /*  The constant 0xfeedface is a magic word for break which
32
  *  is defined by NINDY.  The branch extended restarts the
33
  *  application if the user types "go".
34
  */
35
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.