summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-19 20:09:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-19 20:09:59 +0000
commit8b2ee37c3806d5340cb3457bfce0b80730468e59 (patch)
tree01288b2cd0a7b89f286c5390e9d71e66a847b238 /cpukit
parentFixed obsolete reference to BSDINSTALL. (diff)
downloadrtems-8b2ee37c3806d5340cb3457bfce0b80730468e59.tar.bz2
Patch from Eric Valette <valette@crf.canon.fr>:
- Use the "hlt" instruction for the Idle thread, - Optimise interrupt PATH leadding to thread wakeup, - Preparation for Intel exception management that should come before the end of the week...
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/score/cpu/i386/cpu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c
index abdb3f2702..4f9274bfd6 100644
--- a/cpukit/score/cpu/i386/cpu.c
+++ b/cpukit/score/cpu/i386/cpu.c
@@ -75,4 +75,11 @@ unsigned32 _CPU_ISR_Get_level( void )
return level;
}
-
+
+void _CPU_Thread_Idle_body ()
+{
+ while(1){
+ asm volatile ("hlt");
+ }
+}
+