4.104.115
Last change
on this file since fc472c9 was
fc472c9,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/26/09 at 13:31:40
|
2009-08-26 Joel Sherrill <joel.sherrill@…>
- 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.
|
-
Property mode set to
100644
|
File size:
846 bytes
|
Line | |
---|
1 | /* |
---|
2 | * The MPC860 specific stuff was written by Jay Monkman (jmonkman@frasca.com) |
---|
3 | * |
---|
4 | * Modified for the MPC8260ADS board by Andy Dachs <a.dachs@sstl.co.uk> |
---|
5 | * Surrey Satellite Technology Limited, 2001 |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989-2007. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <bsp.h> |
---|
18 | |
---|
19 | /* |
---|
20 | * bsp_idle_thread |
---|
21 | * |
---|
22 | * The MSR[POW] bit is set to put the CPU into the low power mode |
---|
23 | * defined in HID0. HID0 is set during starup in start.S. |
---|
24 | * |
---|
25 | */ |
---|
26 | void *bsp_idle_thread( uintptr_t ignored ) |
---|
27 | { |
---|
28 | for( ; ; ) { |
---|
29 | asm volatile( |
---|
30 | "mfmsr 3; oris 3,3,4; sync; mtmsr 3; isync; ori 3,3,0; ori 3,3,0" |
---|
31 | ); |
---|
32 | } |
---|
33 | |
---|
34 | return 0; /* to remove warning */ |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.