plan 9 kernel history: overview | file list | diff list

1999/0501/port/taslock.c (diff list | history)

1999/0402/sys/src/9/port/taslock.c:33,391999/0501/sys/src/9/port/taslock.c:33,39 (short | long | prev | next)
1998/0606    
	int i, cansched; 
	ulong pc, oldpri; 
1995/1009    
 
	pc = getcallerpc(l); 
1999/0501    
	pc = getcallerpc(&l); 
1995/1009    
 
1998/0606    
lockstats.locks++; 
1996/0522    
	if(tas(&l->key) == 0){ 
1999/0402/sys/src/9/port/taslock.c:89,951999/0501/sys/src/9/port/taslock.c:89,95
1998/0606    
	ulong pc, oldpri; 
	int cansched; 
1995/0110    
 
1995/1009    
	pc = getcallerpc(l); 
1999/0501    
	pc = getcallerpc(&l); 
1998/0606    
lockstats.locks++; 
1995/1009    
 
1995/0110    
	x = splhi(); 
1999/0402/sys/src/9/port/taslock.c:138,1441999/0501/sys/src/9/port/taslock.c:138,144
1996/0522    
	if(tas(&l->key)) 
1996/0511    
		return 0; 
1996/0522    
 
	l->pc = getcallerpc(l); 
1999/0501    
	l->pc = getcallerpc(&l); 
1998/0604    
	l->p = up; 
	l->isilock = 0; 
1992/0222    
	return 1; 
1999/0402/sys/src/9/port/taslock.c:149,1571999/0501/sys/src/9/port/taslock.c:149,157
1992/0222    
{ 
1998/0604    
 
1998/0522    
	if(l->key == 0) 
1998/0825    
		print("unlock: not locked: pc %luX\n", getcallerpc(l)); 
1999/0501    
		print("unlock: not locked: pc %luX\n", getcallerpc(&l)); 
1998/0604    
	if(l->isilock) 
		print("iunlock of lock: pc %lux, held by %lux\n", getcallerpc(l), l->pc); 
1999/0501    
		print("iunlock of lock: pc %lux, held by %lux\n", getcallerpc(&l), l->pc); 
1996/0522    
	l->pc = 0; 
1997/0327    
	l->key = 0; 
1997/0220    
	coherence(); 
1999/0402/sys/src/9/port/taslock.c:163,1711999/0501/sys/src/9/port/taslock.c:163,171
1994/0322    
	ulong sr; 
 
1998/0603    
	if(l->key == 0) 
1998/0825    
		print("iunlock: not locked: pc %luX\n", getcallerpc(l)); 
1999/0501    
		print("iunlock: not locked: pc %luX\n", getcallerpc(&l)); 
1998/0604    
	if(!l->isilock) 
		print("unlock of ilock: pc %lux, held by %lux\n", getcallerpc(l), l->pc); 
1999/0501    
		print("unlock of ilock: pc %lux, held by %lux\n", getcallerpc(&l), l->pc); 
1998/0603    
 
1994/0322    
	sr = l->sr; 
1995/1014    
	l->pc = 0; 
1999/0402/sys/src/9/port/taslock.c:172,1771999/0501/sys/src/9/port/taslock.c:172,177
1997/0327    
	l->key = 0; 
1997/0220    
	coherence(); 
1998/0606    
 
	m->splpc = getcallerpc(l); 
1999/0501    
	m->splpc = getcallerpc(&l); 
1998/0606    
	splxpc(sr); 
1992/0222    
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)