|
From: Stanislav K. <be...@vi...> - 2001-10-11 06:01:45
|
>> Is there any good way to implement this? CR> Why not take a simple aproach; CR> init ATA CR> sleep(31) CR> check status register. Good idea. However, ATA may finish its resetting before 31 seconds expire and waiting that much can be frustrating for user (e.g. during bootup). A modification of this approach would be to check status register each 5 or 3 seconds or even each 1 second - this way not much cpu time is wasted and response time is adequate. -- keep in touch. Stanislav Karchebny. * be...@vi... * http://ber.k45.ru * ICQ UIN 49516372 * * Odin operating system development: http://odin-os.sf.net * * Components down to the metal * |