summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-19 16:28:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-19 16:28:55 +0000
commit56035ca340276e0b4e12af667a112403da066b55 (patch)
tree1887320682a3966ef782e363a719936ca73a632b /c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
parent2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-56035ca340276e0b4e12af667a112403da066b55.tar.bz2
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, console/console.c, console/debugputs.c, 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. Also address use of maximum termios constant in debug IO. * startup/bspidle.S: New file.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/startup/bspidle.S31
1 files changed, 31 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
new file mode 100644
index 0000000000..e25128c0f6
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
@@ -0,0 +1,31 @@
+/*
+ * Idle Thread Body
+ *
+ * This routine puts LEON3 in power-down mode.
+ *
+ * COPYRIGHT (c) 2004.
+ * Gaisler Research.
+ *
+ * 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.
+ *
+ *
+ * $Id$
+ */
+
+
+
+#include <rtems/asm.h>
+
+/* LEON specific power-down function */
+
+ .align 4
+ PUBLIC(bsp_idle_thread)
+SYM(bsp_idle_thread):
+pwdloop: mov %g0, %asr19
+ ba pwdloop
+ nop
+ retl
+ nop
+