source: rtems/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c @ 1bfedfe

4.104.114.84.95
Last change on this file since 1bfedfe was 4daae74, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:53:04

2003-09-04 Joel Sherrill <joel@…>

  • shared/misc/m68kidle.c: URL for license changed.
  • Property mode set to 100644
File size: 920 bytes
Line 
1/*
2 *  Motorola MC68xxx Dependent Idle Body Source
3 *
4 *  COPYRIGHT (c) 1989-2002.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  $Id$
12 */
13
14#include <rtems/system.h>
15#include <rtems/score/thread.h>
16
17
18/*PAGE
19 *
20 *  _Thread_Idle_body
21 *
22 *  This kernel routine is the idle thread.  The idle thread runs any time
23 *  no other thread is ready to run.  This thread loops forever with
24 *  interrupts enabled.
25 *
26 *  Input parameters:
27 *    ignored - this parameter is ignored
28 *
29 *  Output parameters:  NONE
30 */
31 
32void _CPU_Thread_Idle_body( void )
33{
34#if defined(mcf5272)
35  for( ; ; ) {
36    asm volatile( "nop" );
37    asm volatile( "nop" );
38  }
39#else
40  for( ; ; )
41    asm volatile( "stop #0x3000" );  /* supervisor mode, all interrupts on */
42#endif
43}
Note: See TracBrowser for help on using the repository browser.