summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_proc.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-04-24 12:49:52 +0000
committerkib <kib@FreeBSD.org>2010-04-24 12:49:52 +0000
commite91c695f77327172ce0a6826362a20989822e97b (patch)
treef957490736ac9e2d4cf2744de79d181118b36d05 /sys/kern/kern_proc.c
parent0b9b56e38ea79db375d5fe8e9d9be5e7a2b36127 (diff)
downloadFreeBSD-src-e91c695f77327172ce0a6826362a20989822e97b.zip
FreeBSD-src-e91c695f77327172ce0a6826362a20989822e97b.tar.gz
Move the constants specifying the size of struct kinfo_proc into
machine-specific header files. Add KINFO_PROC32_SIZE for struct kinfo_proc32 for architectures providing COMPAT_FREEBSD32. Add CTASSERT for the size of struct kinfo_proc32. Submitted by: pluknet Reviewed by: imp, jhb, nwhitehorn MFC after: 2 weeks
Diffstat (limited to 'sys/kern/kern_proc.c')
-rw-r--r--sys/kern/kern_proc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
index d4943c0..5601ecf 100644
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -151,6 +151,9 @@ int kstack_pages = KSTACK_PAGES;
SYSCTL_INT(_kern, OID_AUTO, kstack_pages, CTLFLAG_RD, &kstack_pages, 0, "");
CTASSERT(sizeof(struct kinfo_proc) == KINFO_PROC_SIZE);
+#ifdef COMPAT_FREEBSD32
+CTASSERT(sizeof(struct kinfo_proc32) == KINFO_PROC32_SIZE);
+#endif
/*
* Initialize global process hashing structures.
OpenPOWER on IntegriCloud