summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2004-01-11 09:18:33 +0000
committernyan <nyan@FreeBSD.org>2004-01-11 09:18:33 +0000
commit772e06d92b89353e10fd4e3c39cd3545df06a19a (patch)
tree51334df196f0b32ecd36afd968736702488621ff
parentf248637520cbbce637c36ca155edb9efdd189456 (diff)
downloadFreeBSD-src-772e06d92b89353e10fd4e3c39cd3545df06a19a.zip
FreeBSD-src-772e06d92b89353e10fd4e3c39cd3545df06a19a.tar.gz
MFi386: revision 1.583.
-rw-r--r--sys/pc98/i386/machdep.c3
-rw-r--r--sys/pc98/pc98/machdep.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index ab8bff3..da93a65 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -130,6 +130,9 @@
#include <sys/ptrace.h>
#include <machine/sigframe.h>
+/* Sanity check for __curthread() */
+CTASSERT(offsetof(struct pcpu, pc_curthread) == 0);
+
extern void init386(int first);
extern void dblfault_handler(void);
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index ab8bff3..da93a65 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -130,6 +130,9 @@
#include <sys/ptrace.h>
#include <machine/sigframe.h>
+/* Sanity check for __curthread() */
+CTASSERT(offsetof(struct pcpu, pc_curthread) == 0);
+
extern void init386(int first);
extern void dblfault_handler(void);
OpenPOWER on IntegriCloud