diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-26 13:31:40 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-26 13:31:40 +0000 |
commit | fc472c9796852e8ab3b097b13ef5bf4f2aa82a6e (patch) | |
tree | f468cb989d58e7ace9e444d3e0236730ac0ea66c /c/src/lib/libbsp/powerpc/mpc8260ads/startup | |
parent | 2009-08-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-fc472c9796852e8ab3b097b13ef5bf4f2aa82a6e.tar.bz2 |
2009-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Rename BSP specific idle thread to
bsp_idle_thread and split into its own file.
* startup/bspidle.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc8260ads/startup')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspidle.c | 35 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c | 22 |
2 files changed, 35 insertions, 22 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspidle.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspidle.c new file mode 100644 index 0000000000..4ca40e88c0 --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspidle.c @@ -0,0 +1,35 @@ +/* + * The MPC860 specific stuff was written by Jay Monkman (jmonkman@frasca.com) + * + * Modified for the MPC8260ADS board by Andy Dachs <a.dachs@sstl.co.uk> + * Surrey Satellite Technology Limited, 2001 + * + * COPYRIGHT (c) 1989-2007. + * 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.com/license/LICENSE. + * + * $Id$ + */ + +#include <bsp.h> + +/* + * bsp_idle_thread + * + * 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 ) +{ + for( ; ; ) { + asm volatile( + "mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0" + ); + } + + return 0; /* to remove warning */ +} diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c index 1cbce38269..194aeb542f 100644 --- a/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mpc8260ads/startup/bspstart.c @@ -237,25 +237,3 @@ void bsp_start(void) #endif } - -/* - * - * _Thread_Idle_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 *_Thread_Idle_body( uintptr_t ignored ) -{ - - for( ; ; ) - { - asm volatile( - "mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0" - ); - } - - return 0; /* to remove warning */ -} |