4.115
Last change
on this file since 78a38fa2 was
78a38fa2,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/14 at 22:38:12
|
Eliminate use of /*PAGE and clean up formatting
|
-
Property mode set to
100644
|
File size:
817 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Motorola MC68xxx Dependent Idle Body Source |
---|
3 | * |
---|
4 | * This kernel routine is the idle thread. The idle thread runs any time |
---|
5 | * no other thread is ready to run. This thread loops forever with |
---|
6 | * interrupts enabled. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * COPYRIGHT (c) 1989-2002. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.org/license/LICENSE. |
---|
16 | */ |
---|
17 | |
---|
18 | #include <rtems/system.h> |
---|
19 | #include <rtems/score/thread.h> |
---|
20 | |
---|
21 | void *_CPU_Thread_Idle_body( uintptr_t ignored ) |
---|
22 | { |
---|
23 | #if defined(mcf5272) |
---|
24 | for( ; ; ) { |
---|
25 | __asm__ volatile( "nop" ); |
---|
26 | __asm__ volatile( "nop" ); |
---|
27 | } |
---|
28 | #else |
---|
29 | for( ; ; ) { |
---|
30 | /* supervisor mode, all interrupts on */ |
---|
31 | __asm__ volatile( "stop #0x3000":::"cc" ); |
---|
32 | } |
---|
33 | #endif |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.