Read data of harddrive in pmode(in C)????
Posted: Sat Feb 13, 2016 6:26 pm
Hey yall.
I have got most of the nitty gritty parts of my operating done(gdt, idt, exceptions, irq, still missing a memory manager) and now I would like to implement a file system.
I have good experience with FAT, and i should be fine with parsing and processing filesystem data, but my problem is getting data. How can I read data of the harddrive(not floppy) in protected mode? I am writing my kernel in C and i would prefer to use as little assembler as possible. So again, how, in C, can i read of a harddrive in protected mode? Thanks
P.S. Whenever i said harddrive i really meant 'harddisk'
I have got most of the nitty gritty parts of my operating done(gdt, idt, exceptions, irq, still missing a memory manager) and now I would like to implement a file system.
I have good experience with FAT, and i should be fine with parsing and processing filesystem data, but my problem is getting data. How can I read data of the harddrive(not floppy) in protected mode? I am writing my kernel in C and i would prefer to use as little assembler as possible. So again, how, in C, can i read of a harddrive in protected mode? Thanks
P.S. Whenever i said harddrive i really meant 'harddisk'