diff --git a/kernel/hal/x86/blk/BlockDevice.cpp b/kernel/hal/x86/blk/BlockDevice.cpp index 0faa353..cef07da 100644 --- a/kernel/hal/x86/blk/BlockDevice.cpp +++ b/kernel/hal/x86/blk/BlockDevice.cpp @@ -43,7 +43,12 @@ namespace MTGosHAL { for(int i=0;i<8;i++) { if(!(existent&(1<>1],0x40); + inb(ataports[i>>1]+CMD); + inb(ataports[i>>1]+CMD); + inb(ataports[i>>1]+CMD); + inb(ataports[i>>1]+CMD); + outb(commports[i>>1],0x00); } } auto BlockDevice::getDriveCnt() -> uint8_t {return numDevices;}