Module Name: src
Committed By: dsl
Date: Sun Jan 19 23:27:30 UTC 2014
Modified Files:
src/sys/arch/i386/include: npx.h
Log Message:
Add a couple of __CTASSERT() for the sizes of the fp save structures.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/i386/include/npx.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/include/npx.h
diff -u src/sys/arch/i386/include/npx.h:1.28 src/sys/arch/i386/include/npx.h:1.29
--- src/sys/arch/i386/include/npx.h:1.28 Sun Jan 19 14:30:37 2014
+++ src/sys/arch/i386/include/npx.h Sun Jan 19 23:27:30 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: npx.h,v 1.28 2014/01/19 14:30:37 dsl Exp $ */
+/* $NetBSD: npx.h,v 1.29 2014/01/19 23:27:30 dsl Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -91,6 +91,7 @@ struct save87 {
uint8_t s87_pad[8 * 2 - 2 * 4]; /* bogus historical padding */
#endif
};
+__CTASSERT(sizeof (struct save87) == 108 + 16);
/* FPU regsters in the extended save format. */
struct fpaccxmm {
@@ -121,6 +122,8 @@ struct fxsave {
uint32_t sv_ex_sw; /* saved SW from last exception */
uint32_t sv_ex_tw; /* saved TW from last exception */
} __aligned(16);
+__CTASSERT(sizeof (struct fxsave) == 512 + 16);
+
union savefpu {
struct save87 sv_87;