odds and ends

This commit is contained in:
rsc 2004-04-21 23:43:46 +00:00
parent e12fa2a49b
commit 7e42d21012
14 changed files with 1454 additions and 5 deletions

View file

@ -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

View file

@ -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;

View file

@ -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