Driver design
Posted: Sat Jul 26, 2003 10:08 am
I was writing my serial port driver, when I noticed it had to read information from tables in the BIOS. Then I realized that some drivers may need to access information only available in real mode...
I was thinking I could have the bootloader load in some real mode drivers specified in a config file and run their initialization routines before switching to protected mode, but that would make a major security hole in the system (by allowing custom drivers to start in real mode).
Also, I'm not sure how to implement the drivers... Should they each have the same functions, or have one function to find out the capabilities of the driver and which other functions are available?
I was thinking I could have the bootloader load in some real mode drivers specified in a config file and run their initialization routines before switching to protected mode, but that would make a major security hole in the system (by allowing custom drivers to start in real mode).
Also, I'm not sure how to implement the drivers... Should they each have the same functions, or have one function to find out the capabilities of the driver and which other functions are available?