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

2000/1130/bitsy/l.s (diff list | history)

2000/1106/sys/src/9/bitsy/l.s:431,4332000/1130/sys/src/9/bitsy/l.s:431,454 (short | long | prev | next)
2000/0831    
	MOVW	4(R0), R14			/* pc */ 
	MOVW	$1, R0 
	RET 
2000/1130    
 
 
/* The first MCR instruction of this function needs to be on a cache-line 
 * boundary; to make this happen, it will be copied (in trap.c). 
 * 
 * Doze puts the machine into idle mode.  Any interrupt will get it out 
 * at the next instruction (the RET, to be precise). 
 */ 
TEXT _doze(SB), $-4 
	MOVW	$UCDRAMZERO, R1 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MOVW	R0,R0 
	MCR     CpPWR, 0, R0, C(CpTest), C(0x2), 2 
	MOVW	(R1), R0 
	MCR     CpPWR, 0, R0, C(CpTest), C(0x8), 2 
	RET 


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