Date: Wed, 21 Oct 1998 07:27:38 -0700 From: David Greenman <dg@root.com> To: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Cc: hackers@FreeBSD.ORG Subject: Re: Handling page faults in user space ? Message-ID: <199810211427.HAA02579@implode.root.com> In-Reply-To: Your message of "Wed, 21 Oct 1998 08:44:43 BST." <199810210744.IAA09732@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
>causes first a fault and then the faulting instruction is restarted and >produces the right output. What is missing is how to know, in the >signal handler, the fault virtual address and maybe IP associated to >the faulting instruction. > >Ideas anyone ? Yes, that is supported. The fault VA is passed back via the sigcontext struct, sc_err. A pointer to the sigcontext is passed into the signal handler as the third arg. See the sigaction(2) man page. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810211427.HAA02579>