From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 18 04:39:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA86D16A4CE for ; Tue, 18 Nov 2003 04:39:10 -0800 (PST) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACB1143FB1 for ; Tue, 18 Nov 2003 04:39:09 -0800 (PST) (envelope-from jilles@stack.nl) Received: from toad.stack.nl (zen.stack.nl [2001:610:1108:5010::130]) by mailhost.stack.nl (Postfix) with ESMTP id 501A61F001; Tue, 18 Nov 2003 13:39:08 +0100 (CET) Received: by toad.stack.nl (Postfix, from userid 1677) id 2E9B69A; Tue, 18 Nov 2003 13:39:08 +0100 (CET) Date: Tue, 18 Nov 2003 13:39:08 +0100 From: Jilles Tjoelker To: John Message-ID: <20031118123907.GA98199@stack.nl> References: <20031118074508.GA74626@mail.unixjunkie.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031118074508.GA74626@mail.unixjunkie.com> User-Agent: Mutt/1.5.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: pge.c, its a power thing! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 12:39:11 -0000 On Tue, Nov 18, 2003 at 01:45:08AM -0600, John wrote: > Sooo.. is there any chance someone could take a look at this > http://www.seanadams.com/pge/pge.c > and tell me what needs to be done to port this, or maybe just > give me some pointers so i can spend the next year working on > this? :) > I think the big problem (well for me) will be converting this > from asm/io.h to something else. maybe ppi? ppi would be more clean, but you can do it the same dirty way under FreeBSD as well. Use i386_set_ioperm() instead of ioperm(). See the manpage, although I think the arguments are the same. Use instead of (ignore the comment about , that's a kernel-only include file). Ignore the setuid crap in the webpage, of course. Just start it as root (that could be fixed if you used ppi). Be warned that I haven't tested any of this. -- Jilles Tjoelker