On Mon, 30 Dec 2002 11:59:04 +0100 (CET), Jimi wrote: >The limit on devices is 8192 and this would make 8k SUB-Block space per device. >The problem with that limit is that I would need to allocate 2048 (!) GDT-selectors, >because I need to map the >space for Ring-0 *and* Ring-3 and that's the whole problem.
I strongly recommend to get rid of this GDT mapping idea at all! We are no longer in the 80286 age and can take advantage of the 4G flat kernel address space. Memory objects in this so called linear address space are addressable from any context by means of the DOS32FLATDS selector; this is even true for Ring-3 user objects sent down to the driver through an IOCtl! In fact, none my drivers written from scratch use virtual address space mappings of any kind, only linear ones; this makes memory handling in drivers so damn easy! So, instead of virtual (GDT based) pointer switch to linear (32-bit) ones and *expose* them to clients. If a client is so stupid to require a virtual mapping then it can do it itself. Ciao, Dani ----------- To unsubscribe yourself from this list, send the following message to [EMAIL PROTECTED] unsubscribe acpi-os2 end