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

1995/0822/pc/l.s (diff list | history)

1995/0426/sys/src/9/pc/l.s:555,5671995/0822/sys/src/9/pc/l.s:555,565 (short | long | prev | next)
Save PC of splhi caller in m->splpc.
rsc Fri Mar 4 12:44:25 2005
1991/0703    
/* 
1991/0716    
 *  interrupt level is interrupts on or off 
1991/0703    
 */ 
1991/0704    
TEXT	spllo(SB),$0 
1991/0710    
	PUSHFL 
	POPL	AX 
1991/0703    
	STI 
1991/0704    
	RET 
                 
TEXT	splhi(SB),$0 
1995/0822    
	MOVL	m(SB), AX 			/* save PC in m->splpc */ 
	MOVL	(SP), BX 
	MOVL	BX, 4(AX) 
 
1991/0710    
	PUSHFL 
	POPL	AX 
1991/0704    
	CLI 
1995/0426/sys/src/9/pc/l.s:568,5761995/0822/sys/src/9/pc/l.s:566,585
1991/0703    
	RET 
1991/0705    
 
TEXT	splx(SB),$0 
1995/0822    
	MOVL	m(SB), AX 			/* save PC in m->splpc */ 
	MOVL	(SP), BX 
	MOVL	BX, 4(AX) 
 
1991/0710    
	MOVL	s+0(FP),AX 
	PUSHL	AX 
	POPFL 
1995/0822    
	RET 
 
TEXT	spllo(SB),$0 
	PUSHFL 
	POPL	AX 
	STI 
TEXT spldone(SB), $0 
1991/0705    
	RET 
1991/0706    
 
1993/1116    
TEXT	getstatus(SB),$0 


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