[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Timed wait/sleep

From: Alex Roman
Subject: Timed wait/sleep
Date: Fri, 6 Jul 2007 17:57:05 -0400


Is there any mechanism to wait/sleep for a specified time in GRUB?

The reason I need something like this is that, for the ATA driver I am
working on, I need to be able to wait for a memory mapped register to
change, but I don't want to wait indefinitely. I'd like to be able to
have some sort of loop that will read the register, say, 10 times,
with 10 ms pause in between the reads...

I've searched for this and wasn't able to find anything in the source code...

If there isn't one, what would be the best way to implement something
like this? Perhaps using the RTC, or straight loops? Would there be
any use, besides my driver, in developing an RTC interface?


Alex Roman <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]