Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 Fix STACK_ALIGN "bytes" argument wh...
details: https://anonhg.NetBSD.org/src/rev/45dccbe8f434
branches: trunk
changeset: 461850:45dccbe8f434
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 12 06:44:49 2019 +0000
description:
Fix STACK_ALIGN "bytes" argument which actually should be a mask.
Spotted by Mark Millard (marklmi at yahoo.com)
diffstat:
sys/arch/aarch64/aarch64/netbsd32_machdep.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b9b9eb116c3c -r 45dccbe8f434 sys/arch/aarch64/aarch64/netbsd32_machdep.c
--- a/sys/arch/aarch64/aarch64/netbsd32_machdep.c Fri Jul 12 06:27:13 2019 +0000
+++ b/sys/arch/aarch64/aarch64/netbsd32_machdep.c Fri Jul 12 06:44:49 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep.c,v 1.6 2019/04/12 09:29:26 ryo Exp $ */
+/* $NetBSD: netbsd32_machdep.c,v 1.7 2019/07/12 06:44:49 skrll Exp $ */
/*
* Copyright (c) 2018 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.6 2019/04/12 09:29:26 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.7 2019/07/12 06:44:49 skrll Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@@ -226,7 +226,7 @@
tf->tf_reg[13]; /* r13 = sp on aarch32 */
fp = (struct netbsd32_sigframe_siginfo *)sp;
- fp = (struct netbsd32_sigframe_siginfo *)STACK_ALIGN(fp - 1, 8);
+ fp = (struct netbsd32_sigframe_siginfo *)STACK_ALIGN(fp - 1, (8 - 1));
memset(&frame, 0, sizeof(frame));
Home |
Main Index |
Thread Index |
Old Index