diff options
Diffstat (limited to 'src/libthread')
-rw-r--r-- | src/libthread/386.c | 1 | ||||
-rw-r--r-- | src/libthread/channel.c | 2 | ||||
-rw-r--r-- | src/libthread/mkfile | 6 |
3 files changed, 7 insertions, 2 deletions
diff --git a/src/libthread/386.c b/src/libthread/386.c index 3fbf0afe..d8052f09 100644 --- a/src/libthread/386.c +++ b/src/libthread/386.c @@ -3,7 +3,6 @@ * To use this you need some patches to Valgrind that * let it help out with detecting stack overflow. */ -#define USEVALGRIND 0 #ifdef USEVALGRIND #include <valgrind/memcheck.h> #endif diff --git a/src/libthread/channel.c b/src/libthread/channel.c index ce27896b..68eaa95e 100644 --- a/src/libthread/channel.c +++ b/src/libthread/channel.c @@ -497,7 +497,7 @@ altexec(Alt *a, int spl) _threaddebug(DBGCHAN, "unlocking the chanlock"); unlock(&chanlock); _procsplx(spl); - _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)&chanlock); + _threaddebug(DBGCHAN, "chanlock is %lud", *(ulong*)(void*)&chanlock); while(_threadrendezvous((ulong)b->tag, 0) == ~0) ; return 1; diff --git a/src/libthread/mkfile b/src/libthread/mkfile index a76682b2..1ced9021 100644 --- a/src/libthread/mkfile +++ b/src/libthread/mkfile @@ -56,3 +56,9 @@ CLEANFILES=$CLEANFILES tprimes texec asm-Linux-386.$O: asm-FreeBSD-386.s asm-NetBSD-386.$O: asm-FreeBSD-386.s asm-OpenBSD-386.$O: asm-FreeBSD-386.s + +# sorry +VG=`test -d /home/rsc/pub/valgrind-debian && echo -DUSEVALGRIND` + +CFLAGS=$CFLAGS $VG + |