From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 30 11:34:15 2006 Return-Path: X-Original-To: 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 DDD6B16A4DA for ; Sun, 30 Jul 2006 11:34:15 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail31.syd.optusnet.com.au (mail31.syd.optusnet.com.au [211.29.132.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3726743D45 for ; Sun, 30 Jul 2006 11:34:15 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail31.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k6UBYCiJ029741 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 30 Jul 2006 21:34:13 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6UBYCFm002586; Sun, 30 Jul 2006 21:34:12 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6UBYCoq002585; Sun, 30 Jul 2006 21:34:12 +1000 (EST) (envelope-from peter) Date: Sun, 30 Jul 2006 21:34:12 +1000 From: Peter Jeremy To: Divacky Roman Message-ID: <20060730113411.GC1310@turion.vk2pj.dyndns.org> References: <20060730105731.GA64955@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jy6Sn24JjFx/iggw" Content-Disposition: inline In-Reply-To: <20060730105731.GA64955@stud.fit.vutbr.cz> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org Subject: Re: VM question related to faults 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: Sun, 30 Jul 2006 11:34:15 -0000 --jy6Sn24JjFx/iggw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 2006-Jul-30 12:57:32 +0200, Divacky Roman wrote: >while working on SoC linuxolator project I am in a need of this: > >I need to do some operation on memory like mem1 =3D mem1 + mem2 etc. >where the mem1/mem2 access can trigger fault. (memory not mapped or someth= ing) This is normally only an issue for accesses to userland memory, where it is solved by fetch(9) and store(9). If you need to deal with KVM addresses that may be unmapped, then all I can suggest is looking at the implementations of the above functions. --=20 Peter Jeremy --jy6Sn24JjFx/iggw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEzJkz/opHv/APuIcRAlJLAJ9RbU4KpfkGp/AuU306sEzOtOfWmgCePBrV pJcrsVu6VDQ//QzoC+mDHAY= =kz+b -----END PGP SIGNATURE----- --jy6Sn24JjFx/iggw--