Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include ALIGNBYTES32 should be (8 - 1), not...



details:   https://anonhg.NetBSD.org/src/rev/31b44decc01d
branches:  trunk
changeset: 447223:31b44decc01d
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jan 04 21:39:38 2019 +0000

description:
ALIGNBYTES32 should be (8 - 1), not (4 - 1) for EABI:
https://nxr.netbsd.org/xref/src/sys/arch/arm/include/cdefs.h#56

Now, sshd for earmv7hf works without problems.
Also fix other users of cmsg(3) API hopefully.

diffstat:

 sys/arch/aarch64/include/param.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 062bfbe86eed -r 31b44decc01d sys/arch/aarch64/include/param.h
--- a/sys/arch/aarch64/include/param.h  Fri Jan 04 21:27:04 2019 +0000
+++ b/sys/arch/aarch64/include/param.h  Fri Jan 04 21:39:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.8 2018/12/06 18:36:06 skrll Exp $ */
+/* $NetBSD: param.h,v 1.9 2019/01/04 21:39:38 rin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
 /* AARCH64-specific macro to align a stack pointer (downwards). */
 #define STACK_ALIGNBYTES       (16 - 1)
 
-#define ALIGNBYTES32           (4 - 1)
+#define ALIGNBYTES32           (8 - 1)
 #define ALIGN32(p)             \
        (((uintptr_t)(p) + ALIGNBYTES32) & ~ALIGNBYTES32)
 



Home | Main Index | Thread Index | Old Index