20 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			238 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| .global $errno, cerror, _cerror, errno
 | |
| 
 | |
| .type _cerror, #function
 | |
| 
 | |
| .section ".text"
 | |
| cerror:
 | |
| _cerror:
 | |
| 	set	$errno, %o5
 | |
| 	st	%o0, [%o5]
 | |
| 	set	errno, %o5
 | |
| 	st	%o0, [%o5]
 | |
| 	set	-1, %o0
 | |
| 	retl
 | |
| 	nop
 | |
| 
 | |
| .section ".data"
 | |
| $errno:
 | |
| 	.long	0
 | |
| errno:
 | |
| 	.long	0
 |