Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jul 2006 21:34:12 +1000
From:      Peter Jeremy <peterjeremy@optushome.com.au>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        hackers@freebsd.org
Subject:   Re: VM question related to faults
Message-ID:  <20060730113411.GC1310@turion.vk2pj.dyndns.org>
In-Reply-To: <20060730105731.GA64955@stud.fit.vutbr.cz>
References:  <20060730105731.GA64955@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 = mem1 + mem2 etc.
>where the mem1/mem2 access can trigger fault. (memory not mapped or something)

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.

-- 
Peter Jeremy

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFEzJkz/opHv/APuIcRAlJLAJ9RbU4KpfkGp/AuU306sEzOtOfWmgCePBrV
pJcrsVu6VDQ//QzoC+mDHAY=
=kz+b
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060730113411.GC1310>