summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/tqm8xx/startup
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/startup
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/startup')
-rw-r--r--c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c51
1 files changed, 0 insertions, 51 deletions
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;
-}