From 8b2ee37c3806d5340cb3457bfce0b80730468e59 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 19 Aug 1998 20:09:59 +0000 Subject: Patch from Eric Valette : - 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... --- cpukit/score/cpu/i386/cpu.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpukit') 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"); + } +} + -- cgit v1.2.3