Harish wrote:
Also how can i acess my harddisk formy os
Thank you for the support .
You could save the whole original configuration to easily exit your kernel like a normal application and restore the state before loading it.
For reading/accessing the hard disks, you need to study how to implement storage devices for 1 whole year for being able to formally implement and test the primitives. You could start with my code, look at the
BOOTCFG/ldr/4/LowEST-Kernel-LEVEL-1-2019-01--src/disks/ATA/commands/ directory and for VERY accurate ATA/ATAPI detection (even for old ATA-3 disks from 386 laptops),
BOOTCFG/LowEST/x86s/HDD/ATA/utils/atadetec/main16.asm. You can study, reimplement and continue from there for 1 year, por ATA, ATAPI, floppy disks. You will probably need another year for SATA, and another year for USB.
You need to study all aspects, accessing the disks with LBA28, LBA48, bus master with the help of FreeDOS, and of course file systems like FAT in CHS and LBA modes, NTFS, ext3, although for more complex file systems like the ones from Linux and NTFS, you will also need 1 year to reimplement if you work alone.