Relative Content

Tag Archive for filesystemslow-levelhard-driveata

Building a file system – creating a ATA PIO interface

can somebody help me with an issue? I’m working on an operating system project of a 32 bit protected mode.
I’m currently writing a file system so I first need to initialize communication with the disk -basically I need function to read and write sectors. I chose the ATA PIO interface and wrote some simple functions but when I try to execute them I appear to get stuck inside the function ata_read_sector. Any ideas? To run my code I first compile it, then make an ISO file that is loaded into a QEMU virtual machine. To create the virtual hard drive I use the following command:
/usr/bin/qemu-img create -f qcow2 os-disk.qcow2 512M