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 As if rump wasn't constipated enou...



details:   https://anonhg.NetBSD.org/src/rev/7562b3d57d0d
branches:  trunk
changeset: 356316:7562b3d57d0d
user:      kre <kre%NetBSD.org@localhost>
date:      Sun Sep 17 05:47:19 2017 +0000

description:
As if rump wasn't constipated enough...

Add some more blockages, hopefully allow the build to find a
path all the way to the other end...

diffstat:

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

diffs (54 lines):

diff -r 9c2ee0c0877e -r 7562b3d57d0d sys/rump/librump/rumpkern/locks.c
--- a/sys/rump/librump/rumpkern/locks.c Sun Sep 17 00:54:16 2017 +0000
+++ b/sys/rump/librump/rumpkern/locks.c Sun Sep 17 05:47:19 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locks.c,v 1.74 2017/05/01 21:35:26 pgoyette Exp $      */
+/*     $NetBSD: locks.c,v 1.75 2017/09/17 05:47:19 kre 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.74 2017/05/01 21:35:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.75 2017/09/17 05:47:19 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -98,7 +98,7 @@
  * penalty.
  */
 
-#define RUMPMTX(mtx) (*(struct rumpuser_mtx **)(mtx))
+#define RUMPMTX(mtx) (*(struct rumpuser_mtx *const*)(mtx))
 
 void
 mutex_init(kmutex_t *mtx, kmutex_type_t type, int ipl)
@@ -183,7 +183,7 @@
 __strong_alias(mutex_spin_exit,mutex_exit);
 
 int
-mutex_ownable(kmutex_t *mtx)
+mutex_ownable(const kmutex_t *mtx)
 {
 
 #ifdef LOCKDEBUG
@@ -193,14 +193,14 @@
 }
 
 int
-mutex_owned(kmutex_t *mtx)
+mutex_owned(const kmutex_t *mtx)
 {
 
        return mutex_owner(mtx) == curlwp;
 }
 
-struct lwp *
-mutex_owner(kmutex_t *mtx)
+lwp_t *
+mutex_owner(const kmutex_t *mtx)
 {
        struct lwp *l;
 



Home | Main Index | Thread Index | Old Index