Should or Shouldn't i use BIOS routines in PMode
Posted: Sat Jan 29, 2005 12:00 am
hi,
i want my OS to be as Hardware Independent as possible. And for this
should i use BIOS routines for accessing Hardware(eg Floppy,HDD,Graphics Adapter)?? or is there any other technique for same?
According to what i know BIOS routines are 16bit so in Pmode i would have to use V86 mode to call these routines? Right? So would there be a performance hit in switching to V86mode everytime i have to access flpy,hdd or any other BIOS supported Hardware?
I want to avoid writting those very very low level routines(32bit) for accessing hardware devices (flpy,hdd etc) !
So what do u think , should i use BIOS function calls or write my own 32bit drivers to driving various controllers(flpy etc). But don't u think writing 32bit drivers will be very time consuming, and tooo much hardware dependent?????
i want my OS to be as Hardware Independent as possible. And for this
should i use BIOS routines for accessing Hardware(eg Floppy,HDD,Graphics Adapter)?? or is there any other technique for same?
According to what i know BIOS routines are 16bit so in Pmode i would have to use V86 mode to call these routines? Right? So would there be a performance hit in switching to V86mode everytime i have to access flpy,hdd or any other BIOS supported Hardware?
I want to avoid writting those very very low level routines(32bit) for accessing hardware devices (flpy,hdd etc) !
So what do u think , should i use BIOS function calls or write my own 32bit drivers to driving various controllers(flpy etc). But don't u think writing 32bit drivers will be very time consuming, and tooo much hardware dependent?????