From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 14 19:13:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 B078B16A4DF; Mon, 14 Aug 2006 19:13:21 +0000 (UTC) (envelope-from ssedov@mbsd.msk.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3B2E43D7C; Mon, 14 Aug 2006 19:13:18 +0000 (GMT) (envelope-from ssedov@mbsd.msk.ru) Received: from [217.118.83.1] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1GChs9-0006jU-9C; Mon, 14 Aug 2006 23:13:15 +0400 Received: from localhost (localhost [127.0.0.1]) by fonon.realnet (Postfix) with ESMTP id A272F12030; Mon, 14 Aug 2006 23:12:29 +0600 (YEKST) Date: Mon, 14 Aug 2006 23:12:23 +0600 From: Stanislav Sedov To: John-Mark Gurney Message-ID: <20060814231223.3c7f1930@localhost> In-Reply-To: <20060814181521.GQ99774@funkthat.com> References: <20060814124658.1d416cbe@localhost> <200608140932.57875.jhb@freebsd.org> <20060814194729.436fc453@localhost> <20060814181521.GQ99774@funkthat.com> Organization: MBSD labs, Inc. X-Operating-System: FreeBSD X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_91Gx87dqCaWFF/y.=3HJu=i"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: freebsd-hackers@freebsd.org Subject: Re: exception handling in kernel code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Aug 2006 19:13:21 -0000 --Sig_91Gx87dqCaWFF/y.=3HJu=i Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Mon, 14 Aug 2006 11:15:22 -0700 John-Mark Gurney mentioned: >=20 > You should make a MD API for reading these out (if one doesn't already > exist) that handle the faulting for you, and then have your driver hook > into this api... >=20 > I had to do something similar for accessing PCI config registers > that don't exist and cause a fault... > =20 Do you know some examples to look at? The problem is that i can't make modifications in trap.c or anywhere else in src tree as such driver isn't likely to become a part of FreeBSD kernel. Thanks! --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Sig_91Gx87dqCaWFF/y.=3HJu=i Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE4K75K/VZk+smlYERAlZEAJ0YlhhPsoGZUxrGE7wJfhxMnEcjzQCeJnes xSCxpVWFYx/HTKY9cZVYmUE= =W+ED -----END PGP SIGNATURE----- --Sig_91Gx87dqCaWFF/y.=3HJu=i--