OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 9:30 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: module driver interface
PostPosted: Wed Sep 26, 2007 6:09 pm 
Offline
Member
Member

Joined: Sun Jun 24, 2007 6:48 pm
Posts: 38
What would be the easiest way of implementing a dynamic driver loading interface? my idea was to have certain parts of the kernel blank and load the driver into these blank spots. What do you think?

_________________
chik'n


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 6:32 pm 
Offline
Member
Member

Joined: Sat Dec 30, 2006 2:31 pm
Posts: 729
Location: East Coast, USA
You could reserve a certain section of the address space for the drivers. ie all of the space between 0xD0000000 and 0xDFFFFFFF is designed for use with drivers. Then you could use relocatable code to put the drivers at the right locations.

_________________
My OS: Fuzzy Logic


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 6:41 pm 
Offline
Member
Member

Joined: Sun Jun 24, 2007 6:48 pm
Posts: 38
ok that makes sense thanks(my kernel isn't that far but that was bugging me)

_________________
chik'n


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 26, 2007 10:58 pm 
Offline
Member
Member
User avatar

Joined: Fri Jan 27, 2006 12:00 am
Posts: 1444
The simplest way, is just have a list of address to fake drivers, if you have no driver load, it just returns with a error code (eg: no driver loaded).
When you load a driver as a relocatable module, just replace the address in the list with the load address of the driver.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group