Module Name: src
Committed By: martin
Date: Mon Jan 15 10:06:49 UTC 2018
Modified Files:
src/sys/arch/sparc/include: reg.h
Log Message:
Redo previous: apply the alignement to the whole struct fpstate - everything
in there is properly aligned, and we need to have fs_queue double aligned
as well.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/sparc/include/reg.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/sparc/include/reg.h
diff -u src/sys/arch/sparc/include/reg.h:1.10 src/sys/arch/sparc/include/reg.h:1.11
--- src/sys/arch/sparc/include/reg.h:1.10 Sun Jan 14 11:55:33 2018
+++ src/sys/arch/sparc/include/reg.h Mon Jan 15 10:06:49 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: reg.h,v 1.10 2018/01/14 11:55:33 martin Exp $ */
+/* $NetBSD: reg.h,v 1.11 2018/01/15 10:06:49 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -106,18 +106,19 @@ struct fp_qentry {
struct fpreg {
u_int fr_regs[32]; /* our view is 32 32-bit registers */
int fr_fsr; /* %fsr */
-}
-#ifdef _KERNEL
- __aligned(8) /* asm code uses std instructions */
-#endif
-;
+};
+
struct fpstate {
struct fpreg fs_reg;
#define fs_regs fs_reg.fr_regs
#define fs_fsr fs_reg.fr_fsr
int fs_qsize; /* actual queue depth */
struct fp_qentry fs_queue[FP_QSIZE]; /* queue contents */
-};
+}
+#ifdef _KERNEL
+ __aligned(8) /* asm code uses std instructions */
+#endif
+;
/*
* The actual FP registers are made accessible (c.f. ptrace(2)) through