Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/matt-nb6-plus]: src/sys/kern Make sure ioctl stkbuf has a minimal alignm...
details: https://anonhg.NetBSD.org/src/rev/4baed3612e61
branches: matt-nb6-plus
changeset: 774524:4baed3612e61
user: matt <matt%NetBSD.org@localhost>
date: Thu Dec 06 16:07:21 2012 +0000
description:
Make sure ioctl stkbuf has a minimal alignment of (__ALIGNBYTES+1)
diffstat:
sys/kern/sys_generic.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b44bb73d0630 -r 4baed3612e61 sys/kern/sys_generic.c
--- a/sys/kern/sys_generic.c Tue Dec 04 07:00:30 2012 +0000
+++ b/sys/kern/sys_generic.c Thu Dec 06 16:07:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_generic.c,v 1.128 2012/01/25 00:28:36 christos Exp $ */
+/* $NetBSD: sys_generic.c,v 1.128.4.1 2012/12/06 16:07:21 matt Exp $ */
/*-
* Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_generic.c,v 1.128 2012/01/25 00:28:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_generic.c,v 1.128.4.1 2012/12/06 16:07:21 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -525,7 +525,7 @@
size_t size, alloc_size;
void *data, *memp;
#define STK_PARAMS 128
- u_long stkbuf[STK_PARAMS/sizeof(u_long)];
+ u_long stkbuf[STK_PARAMS/sizeof(u_long)] __aligned(__ALIGNBYTES+1);
memp = NULL;
alloc_size = 0;
Home |
Main Index |
Thread Index |
Old Index