lkml.org 
[lkml]   [1999]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectWhy 4 HLTs in bugs.h?
Date
In the file $SRC/include/asm-i386/bugs.h, function check_hlt(), which prints
the "Checking 'hlt' instruction...Ok" message during bootup, why are there
4 HLTs?

__asm__ __volatile__("hlt ; hlt ; hlt ; hlt");

Why are 4 HLTs required? Isn't just 1 HLT sufficient to see if HLT indeed
works? Why is such a check required? Is it to check whether interrupts can
indeed drive the processor out of HALT mode (and continue bootup?)

--shail

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.022 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site