summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/pc386/startup
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2016-01-08 12:15:46 -0500
committerGedare Bloom <gedare@rtems.org>2016-03-03 16:36:29 -0500
commitfd05a055e67128f2410629dba52f8c33e08d2297 (patch)
tree250c660a7d70cca07165429181b8bad0d75527d9 /c/src/lib/libbsp/i386/pc386/startup
parentversion.c: Add space so printing is neater (diff)
downloadrtems-fd05a055e67128f2410629dba52f8c33e08d2297.tar.bz2
i386: move idle thread into BSP layer
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/startup')
-rw-r--r--c/src/lib/libbsp/i386/pc386/startup/bspidle.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspidle.S b/c/src/lib/libbsp/i386/pc386/startup/bspidle.S
new file mode 100644
index 0000000000..740671afc1
--- /dev/null
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspidle.S
@@ -0,0 +1,19 @@
+/*
+ * Idle Thread Body
+ *
+ * COPYRIGHT (c) 2016.
+ * 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.org/license/LICENSE.
+ */
+
+#include <rtems/asm.h>
+
+.p2align 4
+
+PUBLIC(bsp_idle_thread)
+SYM(bsp_idle_thread):
+hltloop: hlt
+ jmp hltloop