Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Put section attribute for turnstile0 in the correct...
details: https://anonhg.NetBSD.org/src/rev/db01bdf60768
branches: trunk
changeset: 465489:db01bdf60768
user: ad <ad%NetBSD.org@localhost>
date: Sun Nov 24 13:14:23 2019 +0000
description:
Put section attribute for turnstile0 in the correct place. For LLVM.
diffstat:
sys/kern/kern_lwp.c | 6 +++---
sys/kern/kern_turnstile.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r f68e49fbd651 -r db01bdf60768 sys/kern/kern_lwp.c
--- a/sys/kern/kern_lwp.c Sun Nov 24 12:21:14 2019 +0000
+++ b/sys/kern/kern_lwp.c Sun Nov 24 13:14:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lwp.c,v 1.212 2019/11/23 19:42:52 ad Exp $ */
+/* $NetBSD: kern_lwp.c,v 1.213 2019/11/24 13:14:23 ad Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009, 2019 The NetBSD Foundation, Inc.
@@ -209,7 +209,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.212 2019/11/23 19:42:52 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.213 2019/11/24 13:14:23 ad Exp $");
#include "opt_ddb.h"
#include "opt_lockdebug.h"
@@ -259,7 +259,7 @@
SDT_PROBE_DEFINE1(proc, kernel, , lwp__start, "struct lwp *");
SDT_PROBE_DEFINE1(proc, kernel, , lwp__exit, "struct lwp *");
-struct turnstile turnstile0;
+struct turnstile turnstile0 __cacheline_aligned;
struct lwp lwp0 __aligned(MIN_LWP_ALIGNMENT) = {
#ifdef LWP0_CPU_INFO
.l_cpu = LWP0_CPU_INFO,
diff -r f68e49fbd651 -r db01bdf60768 sys/kern/kern_turnstile.c
--- a/sys/kern/kern_turnstile.c Sun Nov 24 12:21:14 2019 +0000
+++ b/sys/kern/kern_turnstile.c Sun Nov 24 13:14:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_turnstile.c,v 1.33 2019/11/21 18:56:55 ad Exp $ */
+/* $NetBSD: kern_turnstile.c,v 1.34 2019/11/24 13:14:23 ad Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2009, 2019 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_turnstile.c,v 1.33 2019/11/21 18:56:55 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_turnstile.c,v 1.34 2019/11/24 13:14:23 ad Exp $");
#include <sys/param.h>
#include <sys/lockdebug.h>
@@ -82,7 +82,7 @@
static tschain_t turnstile_chains[TS_HASH_SIZE] __cacheline_aligned;
static kmutex_t *turnstile_locks[TS_HASH_SIZE] __read_mostly;
pool_cache_t turnstile_cache __read_mostly;
-extern turnstile_t turnstile0 __cacheline_aligned;
+extern turnstile_t turnstile0;
static int turnstile_ctor(void *, void *, int);
Home |
Main Index |
Thread Index |
Old Index