Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 1998 13:55:03 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        dg@root.com
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Handling page faults in user space ?
Message-ID:  <199810211255.NAA10177@labinfo.iet.unipi.it>
In-Reply-To: <199810211427.HAA02579@implode.root.com> from "David Greenman" at Oct 21, 98 07:27:19 am

next in thread | previous in thread | raw e-mail | index | archive | help
> >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.

Thanks a lot, that was it!

However the sigaction manpage (at least on 2.2.6) seems incomplete.
It only specifies three args for the handler, whereas from looking
at macine/frame.h i see "struct sigframe" with a number of arguments,
and i found the fourth arg to the signal handler to be exactly the
fault address...

	cheers
	luigi

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?199810211255.NAA10177>