Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/aarch64/gen fix type of argument for va_arg; d...
details: https://anonhg.NetBSD.org/src/rev/de47b1509431
branches: trunk
changeset: 994633:de47b1509431
user: ryo <ryo%NetBSD.org@localhost>
date: Fri Nov 16 10:51:08 2018 +0000
description:
fix type of argument for va_arg; don't round to 32bit.
diffstat:
lib/libc/arch/aarch64/gen/makecontext.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 98c12bc35fdd -r de47b1509431 lib/libc/arch/aarch64/gen/makecontext.c
--- a/lib/libc/arch/aarch64/gen/makecontext.c Fri Nov 16 10:12:00 2018 +0000
+++ b/lib/libc/arch/aarch64/gen/makecontext.c Fri Nov 16 10:51:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makecontext.c,v 1.1 2014/08/10 05:47:36 matt Exp $ */
+/* $NetBSD: makecontext.c,v 1.2 2018/11/16 10:51:08 ryo Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: makecontext.c,v 1.1 2014/08/10 05:47:36 matt Exp $");
+__RCSID("$NetBSD: makecontext.c,v 1.2 2018/11/16 10:51:08 ryo Exp $");
#endif
#include <stddef.h>
@@ -63,9 +63,9 @@
va_list ap;
va_start(ap, argc);
- /* Pass up to four arguments in r0-3. */
+ /* Pass up to eight arguments in x0-x7. */
for (int i = 0; i < argc && i < 8; i++) {
- gr[_REG_X0 + i] = va_arg(ap, int);
+ gr[_REG_X0 + i] = va_arg(ap, __greg_t);
}
/* Pass any additional arguments on the stack. */
Home |
Main Index |
Thread Index |
Old Index