summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-27 16:51:34 +0000
committerjhb <jhb@FreeBSD.org>2007-03-27 16:51:34 +0000
commit38635fcc558fe931a5a864b1a29dadf5d0fc233f (patch)
tree8cb816058ea31e13ca121189e4b6cb7105074b49 /sys/kern/init_main.c
parent441b1fffcf1f60b98ed1a108c3b48647ffc35d6f (diff)
downloadFreeBSD-src-38635fcc558fe931a5a864b1a29dadf5d0fc233f.zip
FreeBSD-src-38635fcc558fe931a5a864b1a29dadf5d0fc233f.tar.gz
Align 'struct thread' on 16 byte boundaries so that the lower 4 bits are
always 0. Previously we aligned threads on a minimum of 8-byte boundaries. Note: This changes the uma zone to no longer cache align threads. We really want the uma zone to do align threads to MAX(16, cache line size) but there currently isn't a good way to express that to uma. Submitted by: attilio
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 8c7f815..9306e83 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -94,7 +94,7 @@ void mi_startup(void); /* Should be elsewhere */
static struct session session0;
static struct pgrp pgrp0;
struct proc proc0;
-struct thread thread0 __aligned(8);
+struct thread thread0 __aligned(16);
struct vmspace vmspace0;
struct proc *initproc;
OpenPOWER on IntegriCloud