From owner-freebsd-hardware@FreeBSD.ORG Mon Dec 1 12:19: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 BD7751065676; Mon, 1 Dec 2008 12:19:16 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout0.freenet.de (mout0.freenet.de [IPv6:2001:748:100:40::2:2]) by mx1.freebsd.org (Postfix) with ESMTP id 4E6308FC1E; Mon, 1 Dec 2008 12:19:15 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from [195.4.92.20] (helo=10.mx.freenet.de) by mout0.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #65) id 1L77kA-0003eI-Jz; Mon, 01 Dec 2008 13:19:14 +0100 Received: from maef9.m.pppool.de ([89.49.174.249]:35495 helo=ernst.jennejohn.org) by 10.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #68) id 1L77kA-0005Bd-By; Mon, 01 Dec 2008 13:19:14 +0100 Date: Mon, 1 Dec 2008 13:19:12 +0100 From: Gary Jennejohn To: Christoph Mallon Message-ID: <20081201131912.355b8356@ernst.jennejohn.org> In-Reply-To: <4933A29B.8060907@gmx.de> References: <547602.79284.qm@web45809.mail.sp1.yahoo.com> <4933A29B.8060907@gmx.de> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org, Won De Erick Subject: Re: Watchdog for Boser (HS-7001) X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de 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 12:19:16 -0000 On Mon, 01 Dec 2008 09:38:51 +0100 Christoph Mallon wrote: > Won De Erick schrieb: > > Hello, > > > > I was trying the assembly language program that is specified in the following document (p24) to set, reset the built-in watchdog timer for the Boser Box. > > > > http://www.boser.com.tw/manual/HS-7001v1.1.pdf > > > > I then installed nasm in FreeBSD 6.2, and added the following lines at the beginning. > > > > section .text > > global _start > > > > _start: > > > > I did assemble, link (ld) and got no error. But when I run, I got the following error: > > > > # ./watchdog.out > > Bus error (core dumped) > > > MOV DX, 2EH > > MOV AL, 87H > > OUT DX, AL > > OUT DX, AL > > 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. > See io(4), i386_get_ioperm(2), i386_set_ioperm(2), mem(4). --- Gary Jennejohn