Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:08

0001 /**
0002  * @file
0003  * @ingroup RTEMSBSPsSPARCLEON2
0004  * @brief LEON2 Idle Thread 
0005  */
0006 
0007 /*
0008  *  LEON2 Idle Thread with power-down function
0009  *
0010  *  COPYRIGHT (c) 1989-2009.
0011  *  On-Line Applications Research Corporation (OAR).
0012  *
0013  *  The license and distribution terms for this file may be
0014  *  found in the file LICENSE in this distribution or at
0015  *  http://www.rtems.org/license/LICENSE.
0016  *
0017  *  Ported to LEON implementation of the SPARC by On-Line Applications
0018  *  Research Corporation (OAR) under contract to the European Space
0019  *  Agency (ESA).
0020  *
0021  *  LEON modifications of respective RTEMS file: COPYRIGHT (c) 1995.
0022  *  European Space Agency.
0023  */
0024 
0025 #include <bsp.h>
0026 
0027 void *bsp_idle_thread( uintptr_t ignored )
0028 {
0029   while (1) {
0030     /* make sure on load follows store to power-down reg */
0031     LEON_REG.Power_Down = LEON_REG.Power_Down;
0032   }
0033   return NULL;
0034 }
0035