diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:13:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-19 16:13:01 +0000 |
commit | b181c306072b5318f1548913c71470df5b992aa4 (patch) | |
tree | 0a39631d33e4ccc68ecf883545e842862d4b538f /c/src/lib/libbsp/sparc/leon2/startup/bspidle.c | |
parent | 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-b181c306072b5318f1548913c71470df5b992aa4.tar.bz2 |
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into
its own file. Properly note to confdefs.h that this BSP has its own
idle thread.
* startup/bspidle.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon2/startup/bspidle.c')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon2/startup/bspidle.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/startup/bspidle.c b/c/src/lib/libbsp/sparc/leon2/startup/bspidle.c new file mode 100644 index 0000000000..34365be8ff --- /dev/null +++ b/c/src/lib/libbsp/sparc/leon2/startup/bspidle.c @@ -0,0 +1,31 @@ +/* + * LEON2 Idle Thread with power-down function + * + * COPYRIGHT (c) 1989-2009. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * Ported to LEON implementation of the SPARC by On-Line Applications + * Research Corporation (OAR) under contract to the European Space + * Agency (ESA). + * + * LEON modifications of respective RTEMS file: COPYRIGHT (c) 1995. + * European Space Agency. + * + * $Id$ + */ + +#include <bsp.h> + +void *bsp_idle_thread( uintptr_t ignored ) +{ + while (1) { + /* make sure on load follows store to power-down reg */ + LEON_REG.Power_Down = LEON_REG.Power_Down; + } + return NULL; +} + |