From e12eb4bed987e47bab5840b88d0dda9059bf9aaf Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Mon, 12 Dec 2022 11:13:24 +0100 Subject: [PATCH] greatly increase drive selection delay because I don't know it doesn't work sometimes otherwise Signed-off-by: Julien CLEMENT --- src/drivers/atapi/mod.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/drivers/atapi/mod.rs b/src/drivers/atapi/mod.rs index b66db0e..5e8d67b 100644 --- a/src/drivers/atapi/mod.rs +++ b/src/drivers/atapi/mod.rs @@ -209,10 +209,12 @@ impl ATABus { fn select_delay(&mut self) { unsafe { - self.dcr.read(); - self.dcr.read(); - self.dcr.read(); - self.dcr.read(); + for _ in 0..100 { + self.dcr.read(); + self.dcr.read(); + self.dcr.read(); + self.dcr.read(); + } } }