OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:11 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject: Re:
PostPosted: Fri Aug 07, 2009 10:10 am 
Offline

Joined: Thu Aug 06, 2009 2:16 pm
Posts: 6
Location: Amager, Denmark
cyr1x wrote:

3. Create a new (or extend) executable format for drivers, where the identifier is stored. (The hardest solution and harder to make it portable)


no. thats maybe the easy'est. make a section in an elf file with a name like : .driver_or_something_like_that

you cot do that in nasm:

like:
Code:
section .text
  code:
     bla bla...

section .driver
  db 'this the driver section!',0


Top
 Profile  
 
 Post subject: Re: Extensible Driver Interface
PostPosted: Thu Oct 03, 2013 6:54 am 
Offline
Member
Member
User avatar

Joined: Sun Feb 20, 2011 2:01 pm
Posts: 110
Yep, that would be portable, a section. PE and ELF support it. Might be an idea to have a backup though (like a string ID'd struct).
It does need enumeration. Also perhaps an EXTENSIBLE Bus implementation (I.E. Bus drivers can be plugged in with their own info slot).

Of course, to be portable you cannot use OO (which would be really nice for a driver if done properly (CDriver->CKybrdDriver->CPS2KybrdDriver))

This looks like a nice project.

_________________
Whoever said you can't do OS development on Windows?
https://github.com/ChaiSoft/ChaiOS


Top
 Profile  
 
 Post subject: Re: Extensible Driver Interface
PostPosted: Thu Oct 03, 2013 7:16 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
Quote:
Of course, to be portable you cannot use OO
Necromancing for the purpose of posting nonsense? [-X

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 63 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 26 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