source: rtems/c/src/lib/libbsp/nios2/nios2_iss/startup/bspclean.c @ 47d88b7

4.104.114.84.95
Last change on this file since 47d88b7 was 47d88b7, checked in by Joel Sherrill <joel.sherrill@…>, on 09/12/07 at 15:16:16

2007-09-12 Joel Sherrill <joel.sherrill@…>

PR 1257/bsps

  • startup/bspclean.c: Code outside of cpukit should use the public API for rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the public API and directly accessing _CPU_ISR_Disable and _CPU_ISR_Enable, they were bypassing the compiler memory barrier directive which could lead to problems. This patch also changes the type of the variable passed into these routines and addresses minor style issues.
  • Property mode set to 100644
File size: 706 bytes
Line 
1/*  bsp_cleanup()
2 *
3 *  This routine normally is part of start.s and usually returns
4 *  control to a monitor.
5 *
6 *  INPUT:  NONE
7 *
8 *  OUTPUT: NONE
9 *
10 *  COPYRIGHT (c) 2005-2006 Kolja Waschk rtemsdev/ixo.de
11 *  Derived from no_cpu/no_bsp/startup/bspclean.c 1.7.
12 *  COPYRIGHT (c) 1989-1999.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.com/license/LICENSE.
18 *
19 *  $Id$
20 */
21
22#include <rtems.h>
23#include <bsp.h>
24#include <rtems/score/cpu.h>
25
26void bsp_cleanup( void )
27{
28    rtems_interrupt_level  level;
29    rtems_interrupt_disable(level);
30    for(;;);
31}
Note: See TracBrowser for help on using the repository browser.