source: rtems/bsps/powerpc/shared/start/bspidle.c @ 9964895

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 20, 2018 at 8:35:35 AM

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • 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.