summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-08 17:38:12 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-09 10:11:58 -0500
commit78a38fa2ae36b68b1adf461354721188f9a6e8a2 (patch)
treee5651aa38de4e526fc8a5c0f263fc33234765404 /c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
parentlibchip/rtc/mc146818a*: Fix prototypes to use uintptr_t and fix set but unuse... (diff)
downloadrtems-78a38fa2ae36b68b1adf461354721188f9a6e8a2.tar.bz2
Eliminate use of /*PAGE and clean up formatting
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/m68k/shared/misc/m68kidle.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c b/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
index 688ddcf65c..96e1288095 100644
--- a/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
+++ b/c/src/lib/libcpu/m68k/shared/misc/m68kidle.c
@@ -1,6 +1,12 @@
/*
* Motorola MC68xxx Dependent Idle Body Source
*
+ * This kernel routine is the idle thread. The idle thread runs any time
+ * no other thread is ready to run. This thread loops forever with
+ * interrupts enabled.
+ */
+
+/*
* COPYRIGHT (c) 1989-2002.
* On-Line Applications Research Corporation (OAR).
*
@@ -12,21 +18,6 @@
#include <rtems/system.h>
#include <rtems/score/thread.h>
-
-/*PAGE
- *
- * _CPU_Thread_Idle_body
- *
- * This kernel routine is the idle thread. The idle thread runs any time
- * no other thread is ready to run. This thread loops forever with
- * interrupts enabled.
- *
- * Input parameters:
- * ignored - this parameter is ignored
- *
- * Output parameters: NONE
- */
-
void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
#if defined(mcf5272)
@@ -35,7 +26,9 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored )
__asm__ volatile( "nop" );
}
#else
- for( ; ; )
- __asm__ volatile( "stop #0x3000":::"cc" ); /* supervisor mode, all interrupts on */
+ for( ; ; ) {
+ /* supervisor mode, all interrupts on */
+ __asm__ volatile( "stop #0x3000":::"cc" );
+ }
#endif
}