diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-19 20:09:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-19 20:09:59 +0000 |
commit | 8b2ee37c3806d5340cb3457bfce0b80730468e59 (patch) | |
tree | 01288b2cd0a7b89f286c5390e9d71e66a847b238 /c/src/exec/score/cpu/i386/cpu.c | |
parent | Fixed obsolete reference to BSDINSTALL. (diff) | |
download | rtems-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 'c/src/exec/score/cpu/i386/cpu.c')
-rw-r--r-- | c/src/exec/score/cpu/i386/cpu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/c/src/exec/score/cpu/i386/cpu.c b/c/src/exec/score/cpu/i386/cpu.c index abdb3f2702..4f9274bfd6 100644 --- a/c/src/exec/score/cpu/i386/cpu.c +++ b/c/src/exec/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"); + } +} + |