Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 Ensure correct alignment for stack buffe...
details: https://anonhg.NetBSD.org/src/rev/13874ca0d6cf
branches: trunk
changeset: 780798:13874ca0d6cf
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Aug 06 08:27:49 2012 +0000
description:
Ensure correct alignment for stack buffers when long != 64-bit, e.g.
arm.
diffstat:
sys/compat/netbsd32/netbsd32_ioctl.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r cbf234cbf99d -r 13874ca0d6cf sys/compat/netbsd32/netbsd32_ioctl.c
--- a/sys/compat/netbsd32/netbsd32_ioctl.c Mon Aug 06 08:17:58 2012 +0000
+++ b/sys/compat/netbsd32/netbsd32_ioctl.c Mon Aug 06 08:27:49 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_ioctl.c,v 1.66 2012/05/28 14:19:10 christos Exp $ */
+/* $NetBSD: netbsd32_ioctl.c,v 1.67 2012/08/06 08:27:49 skrll Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.66 2012/05/28 14:19:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_ioctl.c,v 1.67 2012/08/06 08:27:49 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -679,8 +679,8 @@
fdfile_t *ff;
int tmp;
#define STK_PARAMS 128
- u_long stkbuf[STK_PARAMS/sizeof(u_long)];
- u_long stkbuf32[STK_PARAMS/sizeof(u_long)];
+ uint64_t stkbuf[STK_PARAMS/sizeof(uint64_t)];
+ uint64_t stkbuf32[STK_PARAMS/sizeof(uint64_t)];
/*
* we need to translate some commands (_IOW) before calling sys_ioctl,
Home |
Main Index |
Thread Index |
Old Index