Module Name: src Committed By: matt Date: Thu Sep 1 18:24:19 UTC 2011
Modified Files: src/sys/kern: kern_ktrace.c Log Message: Always make sure that kte_entry is aligned appropriately so register_t can be stored there. (not really a problem right now since time_t is now 64bit bit and it just works but it's better to be explicit). To generate a diff of this commit: cvs rdiff -u -r1.157 -r1.158 src/sys/kern/kern_ktrace.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_ktrace.c diff -u src/sys/kern/kern_ktrace.c:1.157 src/sys/kern/kern_ktrace.c:1.158 --- src/sys/kern/kern_ktrace.c:1.157 Wed Jun 1 21:25:00 2011 +++ src/sys/kern/kern_ktrace.c Thu Sep 1 18:24:19 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_ktrace.c,v 1.157 2011/06/01 21:25:00 alnsn Exp $ */ +/* $NetBSD: kern_ktrace.c,v 1.158 2011/09/01 18:24:19 matt Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.157 2011/06/01 21:25:00 alnsn Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_ktrace.c,v 1.158 2011/09/01 18:24:19 matt Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -97,7 +97,7 @@ void *kte_buf; size_t kte_bufsz; #define KTE_SPACE 32 - uint8_t kte_space[KTE_SPACE]; + uint8_t kte_space[KTE_SPACE] __aligned(sizeof(register_t)); }; struct ktr_desc {