"Ana Yuseepi" <anayuseepi@asia.com> wrote: > > save_flag(); > disable_interrupt(); > poll_or_read_or_get_input_from_IDE_status_register(); > enable_interrupt(); > restore_flags(); Hm. I don't know if I understand correct, but why are you disabling interrupts while reading a status register ? Isn't it enough to do something like: byte stat; stat = GET_STAT(); if (stat == 0x50) { printk("0x50 reached..\n"); } Or am I totally wrong here ? *Kristian :... [snd.science] ...: :: _o) :: http://www.korseby.net /\\ :: http://gsmp.sf.net _\_V :.........................: -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/