Added software reset to the block device
This commit is contained in:
parent
0dc8692443
commit
6306a83bea
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,12 @@ namespace MTGosHAL {
|
|||
for(int i=0;i<8;i++) {
|
||||
if(!(existent&(1<<i)))
|
||||
continue;
|
||||
|
||||
outb(commports[i>>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;}
|
||||
|
|
Loading…
Reference in a new issue