From owner-freebsd-mobile Wed Nov 5 06:31:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA12544 for mobile-outgoing; Wed, 5 Nov 1997 06:31:57 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from mailhub (tfs.com [140.145.250.1]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA12538 for ; Wed, 5 Nov 1997 06:31:54 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from schizo.dk.tfs.com by mailhub (SMI-8.6/SMI-SVR4) id GAA14552; Wed, 5 Nov 1997 06:24:22 -0800 Received: from critter.freebsd.dk (critter.dk.tfs.com [140.145.230.252]) by schizo.dk.tfs.com (8.8.7/8.7.3) with ESMTP id PAA01190; Wed, 5 Nov 1997 15:30:06 +0100 (MET) Received: from critter.freebsd.dk (localhost.dk.tfs.com [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.7) with ESMTP id PAA01016; Wed, 5 Nov 1997 15:29:03 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Mike Smith cc: Nate Williams , freebsd-mobile@FreeBSD.ORG Subject: Re: Libretto 50 - US Version and PAO In-reply-to: Your message of "Wed, 05 Nov 1997 22:06:12 +1030." <199711051136.WAA00451@word.smith.net.au> Date: Wed, 05 Nov 1997 15:29:03 +0100 Message-ID: <1014.878740143@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199711051136.WAA00451@word.smith.net.au>, Mike Smith writes: >> In message <199711050501.PAA00312@word.smith.net.au>, Mike Smith writes: >> >> >One big issue (to me) is dealing with the fact that I need another >> >segment descriptor for the PnP BIOS interface. >> >> This is no big deal, we have plenty available. > >No, we're out. If we want to be able to run Linux WABI, it wants >(AFAIR) everything from 11 or 12 and up. At any rate, I think I have a >solution which deposes the APM descriptors and makes them "general >purpose" ones. I'll know Friday when I get to test it. they What ??? They must be out of their mind :-( >> I do not like the >> idea of trying to go through the vm86 interface to get to the APM. > >I was only *ever* proposing this for dealing with APM biossen that >don't support the 32-bit interface. I don't actually know if it's >worth the effort though, as we don't support such systems now... Ahh, ok. >> My docking station is supposedly handled by the PnP event mechanism, >> so I'm pretty interested in this stuff obviously. > >Hmm, I should get you to add my extra PnP rummaging and see which event >signalling mechanism it uses. In particular, I'm interested to know if >anyone uses the 'system device' method rather than the 'polled flag' >method. polled flag in my case. >> We will also need to enlist Stefan Esser to really get this to the >> right place, because doing hot-plug/PnP/CardBus requires the ability >> to modify the PCI setup, and hopefully all the drivers can be taught >> this in some kind of meaningful way. > >Woo, CardBus. Not sure I'm ready for that just yet. Well, I still havn't seen any cards, so it's no rush yet :-) >I have an interface (the PnP protected-mode interface, FWIW) which >expects to be called via a "far call", ie. lcall seg:ofs. It also >wants to take arguments on the (16-bit) stack. I'm trying to work out >how to write an assembly shim to make this possible, as gcc doesn't >grok "far" in any way shape or form. > >Presuming I have the segments created correctly, how do I make a call >into another segment with arbitrary arguments on the stack? (I need to >arrange a new data segment as well...) I'm stuffed on this one, short >of custom-rolling a shim for each argument arrangement... I looked at that one. My idea was to do two levels of wrappers: 1. (Inline) Assembly call_pnp(segment, offset, int stackdepth, u_int16_t *stack) 2. C wrappers for each PnP function that constructs the above. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop."