summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-10 01:21:38 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-09-10 01:21:38 +0000
commit27e7b144119050f7b29d096471f16cb7aa979860 (patch)
tree00e1c004777e67cb262857a4d2abd783cf671e56 /c/src/lib/libbsp/powerpc/tqm8xx
parent2009-09-09 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-27e7b144119050f7b29d096471f16cb7aa979860.tar.bz2
2009-09-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1435/bsps * Makefile.am: Use shared implementation of bsp_idle_thread(). * startup/bspidle.c: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog6
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am7
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c51
3 files changed, 10 insertions, 54 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
index 97449c9a32..82e881a677 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-09 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ PR 1435/bsps
+ * Makefile.am: Use shared implementation of bsp_idle_thread().
+ * startup/bspidle.c: Removed.
+
2009-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Rename BSP specific idle thread to
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
index ead7ee2d51..8246d0ae62 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
@@ -58,9 +58,10 @@ libbsp_a_SOURCES += timer/timer.c
# startup
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c ../../shared/bsppredriverhook.c \
- ../../shared/bsppretaskinghook.c startup/bspidle.c startup/bspstart.c \
- startup/bspgetworkarea.c ../../shared/bootcard.c startup/mmutlbtab.c \
- startup/cpuinit.c ../../shared/sbrk.c ../../shared/gnatinstallhandler.c
+ ../../shared/bsppretaskinghook.c ../shared/startup/bspidle.c \
+ startup/bspstart.c startup/bspgetworkarea.c ../../shared/bootcard.c \
+ startup/mmutlbtab.c startup/cpuinit.c ../../shared/sbrk.c \
+ ../../shared/gnatinstallhandler.c
if HAS_NETWORKING
network_CPPFLAGS = -D__INSIDE_RTEMS_BSD_TCPIP_STACK__
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c
deleted file mode 100644
index 29a2f0a8d8..0000000000
--- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * @file
- *
- * @ingroup tqm8xx
- *
- * @brief Source for BSP Idle Thread
- */
-
-/*
- * Copyright (c) 2008
- * Embedded Brains GmbH
- * Obere Lagerstr. 30
- * D-82178 Puchheim
- * Germany
- * rtems@embedded-brains.de
- *
- * 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.h>
-#include <libcpu/powerpc-utility.h>
-
-#include <bsp.h>
-
-/**
- * @brief BSP Idle thread body.
- *
- * Replaces the one in c/src/exec/score/src/threadidlebody.c
- * The MSR[POW] bit is set to put the CPU into the low power mode
- * defined in HID0. HID0 is set during starup in start.S.
- */
-void *bsp_idle_thread( uintptr_t ignored )
-{
-
- while (1) {
- asm volatile (
- "mfmsr 3;"
- "oris 3, 3, 4;"
- "sync;"
- "mtmsr 3;"
- "isync;"
- "ori 3, 3, 0;"
- "ori 3, 3, 0"
- );
- }
-
- return NULL;
-}