 b6cbf7203b
			
		
	
	
		b6cbf7203b
		
	
	
	
	
		
			
			This patch imports the unmodified current version of NetBSD libc. The NetBSD includes are in /nbsd_include, while the libc code itself is split between lib/nbsd_libc and common/lib/libc.
		
			
				
	
	
		
			28 lines
		
	
	
		
			505 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			505 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /*	$NetBSD: fpgetsticky.S,v 1.3 2002/06/12 19:17:22 fvdl Exp $	*/
 | |
| 
 | |
| /*
 | |
|  * Written by Frank van der Linden at Wasabi Systems for NetBSD.
 | |
|  * Public domain.
 | |
|  *
 | |
|  */
 | |
| 
 | |
| #include <machine/asm.h>
 | |
| 
 | |
| /*
 | |
|  * XXX read both the x87 and SSE status words here, and OR
 | |
|  * them to get a complete picture of exceptions.
 | |
|  */
 | |
| 
 | |
| #ifdef WEAK_ALIAS
 | |
| WEAK_ALIAS(fpgetsticky, _fpgetsticky)
 | |
| ENTRY(_fpgetsticky)
 | |
| #else
 | |
| ENTRY(fpgetsticky)
 | |
| #endif
 | |
| 	fnstsw	-4(%rsp)
 | |
| 	stmxcsr	-8(%rsp)
 | |
| 	movl	-4(%rsp),%eax
 | |
| 	orl	-8(%rsp),%eax
 | |
| 	andl	$63,%eax
 | |
| 	ret
 |