From owner-freebsd-hardware@FreeBSD.ORG Mon Dec 1 09:20:16 2008 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59592106567D for ; Mon, 1 Dec 2008 09:20:16 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from n68.bullet.mail.sp1.yahoo.com (n68.bullet.mail.sp1.yahoo.com [98.136.44.44]) by mx1.freebsd.org (Postfix) with SMTP id 21E7B8FC1F for ; Mon, 1 Dec 2008 09:20:15 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from [69.147.65.171] by n68.bullet.mail.sp1.yahoo.com with NNFMP; 01 Dec 2008 09:20:15 -0000 Received: from [69.147.84.34] by t13.bullet.mail.sp1.yahoo.com with NNFMP; 01 Dec 2008 09:20:15 -0000 Received: from [127.0.0.1] by omp210.mail.sp1.yahoo.com with NNFMP; 01 Dec 2008 09:20:15 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 833162.3025.bm@omp210.mail.sp1.yahoo.com Received: (qmail 7311 invoked by uid 60001); 1 Dec 2008 09:20:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=v/gdz5wIir73955nlqaf+VS76PoAwGZaDyxP5q2G769ZgJMplu9oMuuQ24rUk6dPcJdgvFcTUoY07T2++zCgqmhXkklftE2HkHMZtiEa2Btum+Jy5GNVcJrb0ff39otmtPMOmmbLkpo7zAS3WIMYimarhnQkpi5GOXtR+sRSo7c=; X-YMail-OSG: 3RjG8MYVM1lM3Sf_ZZvJEZppfDxWZb1YYP__P6tysy2137viskpM9XwrwFKOyq1uOqlx6zSow79oI1Og5_zquksZjL7VXfDxh7cXtW7ox5RaobgICBqvH9LSqIOCjgip7lOJz9P1fCnsIv2sD_Jy9P.kUKrWl81qxwOY9kM1aw.Fmzxk5aQRlplVlVQb Received: from [58.71.34.137] by web45805.mail.sp1.yahoo.com via HTTP; Mon, 01 Dec 2008 01:20:14 PST X-Mailer: YahooMailRC/1155.32 YahooMailWebService/0.7.260.1 References: <547602.79284.qm@web45809.mail.sp1.yahoo.com> <4933A29B.8060907@gmx.de> <20081201090421.GA99082@rink.nu> Date: Mon, 1 Dec 2008 01:20:14 -0800 (PST) From: Won De Erick To: Rink Springer , Christoph Mallon MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <611173.7111.qm@web45805.mail.sp1.yahoo.com> Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Watchdog for Boser (HS-7001) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 09:20:16 -0000 > ----- Original Message ---- > From: Rink Springer > > On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: > > Userland is not allowed to write to ports. That's the bus error you see. > > Also without a call to the exit syscall at the end, it will segfault. > > Note that you can write to ports from userland by opening /dev/io - if > you have it opened, you can write to the ports. > I've added the following at the end mov eax, 1 ; SYS_exit call doint doint: int 0x80 ret Besides, I can see the following at /dev crw------- 1 root wheel 0, 16 Nov 27 01:53 io How should I make this open? do i need to %include this? > -- > Rink P.W. Springer - http://rink.nu > "Anyway boys, this is America. Just because you get more votes doesn't > mean you win." - Fox Mulder >