Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Redo previous: apply the alignement t...



details:   https://anonhg.NetBSD.org/src/rev/92d0c527e529
branches:  trunk
changeset: 829039:92d0c527e529
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jan 15 10:06:49 2018 +0000

description:
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.

diffstat:

 sys/arch/sparc/include/reg.h |  15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r 437684e26304 -r 92d0c527e529 sys/arch/sparc/include/reg.h
--- a/sys/arch/sparc/include/reg.h      Mon Jan 15 09:49:16 2018 +0000
+++ b/sys/arch/sparc/include/reg.h      Mon Jan 15 10:06:49 2018 +0000
@@ -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 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



Home | Main Index | Thread Index | Old Index