Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/sys/rump/librump/rumpkern Pull up following revision(s) (...



details:   https://anonhg.NetBSD.org/src/rev/903f58fbd5ec
branches:  netbsd-7
changeset: 799897:903f58fbd5ec
user:      snj <snj%NetBSD.org@localhost>
date:      Mon May 09 19:40:44 2016 +0000

description:
Pull up following revision(s) (requested by joerg in ticket #1162):
        sys/rump/librump/rumpkern/rump.c: revision 1.329
Align the message buffer. The kernel routines normally are used only
with page aligned buffers and they assume at least pointer alignment. Be
defensive here and align to 256 Bytes.

diffstat:

 sys/rump/librump/rumpkern/rump.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 6d9ee55bc174 -r 903f58fbd5ec sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Mon May 09 19:34:50 2016 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Mon May 09 19:40:44 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.308.2.3 2015/03/25 16:54:37 snj Exp $       */
+/*     $NetBSD: rump.c,v 1.308.2.4 2016/05/09 19:40:44 snj Exp $       */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.308.2.3 2015/03/25 16:54:37 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.308.2.4 2016/05/09 19:40:44 snj Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -109,7 +109,8 @@
 static void rump_component_addlocal(void);
 static struct lwp *bootlwp;
 
-static char rump_msgbuf[16*1024]; /* 16k should be enough for std rump needs */
+/* 16k should be enough for std rump needs */
+static  char rump_msgbuf[16*1024] __aligned(256);
 
 bool rump_ttycomponent = false;
 



Home | Main Index | Thread Index | Old Index