source: rtems/c/src/lib/libbsp/powerpc/shared/startup/bspidle.c @ 7ec9bd59

4.115
Last change on this file since 7ec9bd59 was 7ec9bd59, checked in by Joel Sherrill <joel.sherrill@…>, on 10/15/14 at 14:31:41

mpc8260 libcpu and mpc6260ads BSP: Fix warnings

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