From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 7 Mar 2011 14:39:46 +0200 From: Lucio De Re To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-ID: <20110307123946.GB1893@fangle.proxima.alt.za> References: <12706287ffd78500298ce35f6a5728a5@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [9fans] realemu update Topicbox-Message-UUID: b807d1d0-ead6-11e9-9d60-3106f5b1d025 On Mon, Mar 07, 2011 at 07:23:36AM -0500, erik quanstrom wrote: > > > in /dev/realmode, you write a struct Ureg (from /386/include/ureg.h) > > (in x86 machine byte order?) containing the register contents and the > > interrupt number of the bios call you want to make. > > yes. you should use libmach to do this dirty work. > Erik, what have you got in mind? Philosophically, you are perfectly correct, but the implementation would seem like overkill to me. Maybe a libmach function to build the registers from user-mode values, but surely not additional complexities in /dev/realmode to set registers, shall we say, from user-mode text values? ++L