From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I77XH-0001qK-8p for mharc-grub-devel@gnu.org; Sat, 07 Jul 2007 06:29:07 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I77XF-0001pi-Hb for grub-devel@gnu.org; Sat, 07 Jul 2007 06:29:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I77XD-0001oy-Oy for grub-devel@gnu.org; Sat, 07 Jul 2007 06:29:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I77XD-0001on-GL for grub-devel@gnu.org; Sat, 07 Jul 2007 06:29:03 -0400 Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I77XC-0000gX-HL for grub-devel@gnu.org; Sat, 07 Jul 2007 06:29:03 -0400 Received: (qmail invoked by alias); 07 Jul 2007 10:28:58 -0000 Received: from p509269A5.dip.t-dialin.net (EHLO [192.168.0.101]) [80.146.105.165] by mail.gmx.net (mp039) with SMTP; 07 Jul 2007 12:28:58 +0200 X-Authenticated: #733973 X-Provags-ID: V01U2FsdGVkX18wTQwKUZcwEQC7jjkEMslN7fLQEdpgFBsZ6/vHwM Mf+dbNz8+sNGc/ Message-ID: <468F6AFE.20806@gmx.de> Date: Sat, 07 Jul 2007 12:29:18 +0200 From: "Jan C. Kleinsorge" User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: The development of GRUB 2 References: <8c0c43de0707061457g5da7175cjf7720722f0547cd0@mail.gmail.com> <8c0c43de0707061521s25f22cd8t38f3299b56604e94@mail.gmail.com> In-Reply-To: <8c0c43de0707061521s25f22cd8t38f3299b56604e94@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Timed wait/sleep X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2007 10:29:06 -0000 For i/o delays on x86, Linux uses a sequence of outp(0x80). 0x80 is usually unsed. One to three times should be quite sufficient. Jan ex Roman wrote: > On 06 Jul 2007 17:04:19 -0500, Haudy Kazemi wrote: >> On Jul 6 2007, Alex Roman wrote: >> I'd avoid straight loops...with those you run into processor speed >> issues...runs too fast on new CPUs, runs too slow on old hardware. Of >> course I guess you could calibrate some straight loops to the RTC, >> and then >> use the loops rather than polling the RTC periodically, but I don't >> think >> the extra level of complication would provide any real benefit. > > Yes, I am reluctant to use loops for that reason. > > I could definitely do a simple read RTC in a loop until the time > difference from when I started the loop is what I want it to be... > > I'll try to get that working, but I am open to other suggestions as well! > > > Thanks! >