Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/include Add a couple of __CTASSERT() for the s...
details: https://anonhg.NetBSD.org/src/rev/366dc8391565
branches: trunk
changeset: 326130:366dc8391565
user: dsl <dsl%NetBSD.org@localhost>
date: Sun Jan 19 23:27:30 2014 +0000
description:
Add a couple of __CTASSERT() for the sizes of the fp save structures.
diffstat:
sys/arch/i386/include/npx.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r c105fb1163ed -r 366dc8391565 sys/arch/i386/include/npx.h
--- a/sys/arch/i386/include/npx.h Sun Jan 19 22:31:13 2014 +0000
+++ b/sys/arch/i386/include/npx.h Sun Jan 19 23:27:30 2014 +0000
@@ -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 @@
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 @@
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;
Home |
Main Index |
Thread Index |
Old Index