summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
committerkib <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
commit0123c148533082914ef44b0bb419e0019290c1dd (patch)
treea52493ff0976a3625200eae1a8ffafad6464b126 /sys/compat
parentf70df6871ba3ce383f1fcbdeffd567199e0edbe9 (diff)
downloadFreeBSD-src-0123c148533082914ef44b0bb419e0019290c1dd.zip
FreeBSD-src-0123c148533082914ef44b0bb419e0019290c1dd.tar.gz
Add an kinfo sysctl to retrieve signal trampoline location for the
given process. Note that the correctness of the trampoline length returned for ABIs which do not use shared page depends on the correctness of the struct sysvec sv_szsigcodebase member, which will be fixed on as-need basis. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/freebsd32/freebsd32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/freebsd32/freebsd32.h b/sys/compat/freebsd32/freebsd32.h
index 8376e95..94f886e 100644
--- a/sys/compat/freebsd32/freebsd32.h
+++ b/sys/compat/freebsd32/freebsd32.h
@@ -362,6 +362,12 @@ struct kinfo_proc32 {
int ki_tdflags;
};
+struct kinfo_sigtramp32 {
+ uint32_t ksigtramp_start;
+ uint32_t ksigtramp_end;
+ uint32_t ksigtramp_spare[4];
+};
+
struct kld32_file_stat_1 {
int version; /* set to sizeof(struct kld_file_stat_1) */
char name[MAXPATHLEN];
OpenPOWER on IntegriCloud