/[hurd]/hurd-l4/wortel/ia32-shutdown.c
ViewVC logotype

Diff of /hurd-l4/wortel/ia32-shutdown.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by marcus, Mon Sep 8 01:00:18 2003 UTC revision 1.2 by marcus, Mon Sep 8 01:41:03 2003 UTC
# Line 27  Line 27 
27  #include "shutdown.h"  #include "shutdown.h"
28    
29    
 void  
 halt (void)  
 {  
   while (1)  
     asm volatile ("hlt");  
 }  
   
   
30  /* There are three ways to reset an ia32 machine.  The first way is to  /* There are three ways to reset an ia32 machine.  The first way is to
31     make the corresponding BIOS call in real mode.  The second way is     make the corresponding BIOS call in real mode.  The second way is
32     to program the keyboard controller to do it.  The third way is to     to program the keyboard controller to do it.  The third way is to
33     triple fault the CPU by using an empty IDT and then causing a     triple fault the CPU by using an empty IDT and then causing a
34     fault.  Any of these can fail on odd hardware.  */     fault.  Any of these can fail on odd hardware.  */
   
35  void  void
36  reset (void)  reset (void)
37  {  {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26