From 7f2a6fa17b09b452a591737e50718fabdf394767 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 18 Apr 2002 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2002-04-18 --- pc/fns.h | 1 + port/taslock.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pc/fns.h b/pc/fns.h index 75432ea59d8c93190867a9fa6e7b344cd911d62b..15af5306e53f6d1bb04d4e4a61b59b06a5dc4704 100644 --- a/pc/fns.h +++ b/pc/fns.h @@ -131,6 +131,7 @@ void touser(void*); void trapenable(int, void (*)(Ureg*, void*), void*, char*); void trapinit(void); int tas(void*); +uvlong tscticks(uvlong*); ulong umbmalloc(ulong, int, int); void umbfree(ulong, int); ulong umbrwmalloc(ulong, int, int); diff --git a/port/taslock.c b/port/taslock.c index 90262941514829af57150229bd5565dfdba03895..6b884791c135df8626d3eedf5855767d9e454e78 100644 --- a/port/taslock.c +++ b/port/taslock.c @@ -182,6 +182,8 @@ iunlock(Lock *l) print("iunlock: not locked: pc %luX\n", getcallerpc(&l)); if(!l->isilock) print("iunlock of lock: pc %lux, held by %lux\n", getcallerpc(&l), l->pc); + if(islo()) + print("iunlock while lo: pc %lux, held by %lux\n", getcallerpc(&l), l->pc); sr = l->sr; l->key = 0;