Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpkern make !LOCKDEBUG work too



details:   https://anonhg.NetBSD.org/src/rev/3116b5cf1842
branches:  trunk
changeset: 325164:3116b5cf1842
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Dec 09 17:03:41 2013 +0000

description:
make !LOCKDEBUG work too

diffstat:

 sys/rump/librump/rumpkern/locks.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 1728616b9e50 -r 3116b5cf1842 sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Mon Dec 09 16:56:11 2013 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Mon Dec 09 17:03:41 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks.c,v 1.66 2013/12/09 16:54:20 pooka Exp $ */
+/*     $NetBSD: locks.c,v 1.67 2013/12/09 17:03:41 pooka Exp $ */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.66 2013/12/09 16:54:20 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.67 2013/12/09 17:03:41 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -55,9 +55,6 @@
        NULL
 };
 
-/* not used, but need the symbols for pointer comparisons */
-syncobj_t mutex_syncobj, rw_syncobj;
-
 #define ALLOCK(lock, ops)              \
     lockdebug_alloc(lock, ops, (uintptr_t)__builtin_return_address(0))
 #define FREELOCK(lock)                 \
@@ -76,6 +73,9 @@
 #define UNLOCKED(a, b)
 #endif
 
+/* not used, but need the symbols for pointer comparisons */
+syncobj_t mutex_syncobj, rw_syncobj;
+
 /*
  * We map locks to pthread routines.  The difference between kernel
  * and rumpuser routines is that while the kernel uses static



Home | Main Index | Thread Index | Old Index