Hello everyone!
I have a problem.
I wrote a IDE driver with the tutorials found on the osdev wiki, my can be found here:
https://github.com/AdeRegt/SanderOSUSB/ ... /dev/ide.cWhen the driver is initialised, it does detect the filesystem on a disk, my filesystem detection code:
https://github.com/AdeRegt/SanderOSUSB/ ... l/fs/mbr.cI decided to add a custom filesystem:
https://github.com/AdeRegt/SanderOSUSB/ ... l/fs/sfs.cThe IDE-ATAPI works perfectly.
The IDE-ATA doesnt:
The system initialises the IDE-ATA, this seems to go OK
The system detects the filesystem, this goes OK
The system initialises the filesystem, this goes OK
The system wants to load sectors stored in a buffer, gotten from the filesystem. this does not go OK.
The data in the buffer is OK, but it is somehow unable to read sectors. the 0x1f7 port returns a 0xff when checking the status and does not read any sector.
Does anyone knows what is wrong?