From 27e7b144119050f7b29d096471f16cb7aa979860 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 10 Sep 2009 01:21:38 +0000 Subject: 2009-09-09 Joel Sherrill PR 1435/bsps * Makefile.am: Use shared implementation of bsp_idle_thread(). * startup/bspidle.c: Removed. --- c/src/lib/libbsp/powerpc/tqm8xx/ChangeLog | 6 +++ c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am | 7 ++-- c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c | 51 ----------------------- 3 files changed, 10 insertions(+), 54 deletions(-) delete mode 100644 c/src/lib/libbsp/powerpc/tqm8xx/startup/bspidle.c (limited to 'c/src/lib/libbsp/powerpc/tqm8xx') 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 + + PR 1435/bsps + * Makefile.am: Use shared implementation of bsp_idle_thread(). + * startup/bspidle.c: Removed. + 2009-08-26 Joel Sherrill * 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 -#include - -#include - -/** - * @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; -} -- cgit v1.2.3