From fnaumann@mail.cs.uni-magdeburg.de Sat Dec 13 00:42:54 2003 Date: Sat, 13 Dec 2003 00:15:59 +0100 From: Patrice Mandin To: Mint list Subject: [MiNT] XHDI, SCSIDRV are in a boat... (was Re: Shutdown() discussion) Message-Id: <20031213001559.3481f42d.mandin.patrice@wanadoo.fr> In-Reply-To: References: <1071034718.3fd6b15e15223@imp2-l.free.fr> <001f01c3bef0$c01e3720$420963d9@blaszak> <1071045922.754.9.camel@joy.sophics> <009f01c3bf91$b1b38040$eb0863d9@blaszak> <1071134219.769.45.camel@joy.sophics> <1071137372.743.58.camel@joy.sophics> <1071139002.769.69.camel@joy.sophics> <1071149984.769.112.camel@joy.sophics> <1071150267.743.115.camel@joy.sophics> Organization: Chez moi X-Mailer: Sylpheed version 0.9.5 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Delivered-To: mint@fishpool.com Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: mandin.patrice@wanadoo.fr Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by prinz.cs.uni-magdeburg.de id hBCNgqn05843 Le Thu, 11 Dec 2003 15:02:59 +0100 (CET) Frank Naumann a écrit: > Hello! > > > Perhaps we could learn from the other "callback based cookie interface > > (like XHDI, SCSIDRV, STIK and so on)" that you mentioned. Were these > > already converted to a MiNT friendly version? If yes, how? > > In short words: > > XHDI (and the other) are mainly a jump table. FreeMiNT create now such a > jumptable (like defined by the interface) that is pushed into the > userspace of every process. These jumptable call a special syscall to > enter the kernel in the correct way. The kernel syscall now decode the > requested function and handle it. This is done for XHDI and SCSIDRV. As > side effect the kernel now have a chance to check user privileges before > performing such an operation. Well, I still wonder why you want to keep cookies under MiNT for the ones dealing with hardware. We should have a xhdi.xdd or a scsidrv.xdd that creates corresponding devices in /dev/ directory, so we don't have to bother whether to use one or the other. Keeping cookies in MiNT is not something that should be considered a good thing. Every hardware access should be done via using a XDD, the rest is dirty writing of software. MiNT-aware applications and libraries should do this. However, the big problem remains: where are those XDD drivers for all Atari hardware and extensions ? -- Patrice Mandin WWW: http://membres.lycos.fr/pmandin/ Programmeur Linux, Atari Spécialité: Développement, jeux