VM question related to faults

Peter Jeremy peterjeremy at optushome.com.au
Sun Jul 30 11:34:15 UTC 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060730/98863fac/attachment.pgp


More information about the freebsd-hackers mailing list