Extensible Driver Interface

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
kokjo
Posts: 6
Joined: Thu Aug 06, 2009 2:16 pm
Location: Amager, Denmark

Re:

Post by kokjo »

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: Select all

section .text
  code:
     bla bla...

section .driver
  db 'this the driver section!',0
User avatar
bellezzasolo
Member
Member
Posts: 110
Joined: Sun Feb 20, 2011 2:01 pm

Re: Extensible Driver Interface

Post by bellezzasolo »

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
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Extensible Driver Interface

Post by Combuster »

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 ]
Post Reply