Home | History | Annotate | Line # | Download | only in fpsp
      1  1.3      wiz *	$NetBSD: x_bsun.sa,v 1.3 2001/06/11 01:50:54 wiz Exp $
      2  1.2      cgd 
      3  1.1  mycroft *	MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
      4  1.1  mycroft *	M68000 Hi-Performance Microprocessor Division
      5  1.1  mycroft *	M68040 Software Package 
      6  1.1  mycroft *
      7  1.1  mycroft *	M68040 Software Package Copyright (c) 1993, 1994 Motorola Inc.
      8  1.1  mycroft *	All rights reserved.
      9  1.1  mycroft *
     10  1.1  mycroft *	THE SOFTWARE is provided on an "AS IS" basis and without warranty.
     11  1.1  mycroft *	To the maximum extent permitted by applicable law,
     12  1.1  mycroft *	MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
     13  1.1  mycroft *	INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
     14  1.1  mycroft *	PARTICULAR PURPOSE and any warranty against infringement with
     15  1.1  mycroft *	regard to the SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
     16  1.1  mycroft *	and any accompanying written materials. 
     17  1.1  mycroft *
     18  1.1  mycroft *	To the maximum extent permitted by applicable law,
     19  1.1  mycroft *	IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
     20  1.1  mycroft *	(INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
     21  1.1  mycroft *	PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
     22  1.1  mycroft *	OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE
     23  1.1  mycroft *	SOFTWARE.  Motorola assumes no responsibility for the maintenance
     24  1.1  mycroft *	and support of the SOFTWARE.  
     25  1.1  mycroft *
     26  1.1  mycroft *	You are hereby granted a copyright license to use, modify, and
     27  1.1  mycroft *	distribute the SOFTWARE so long as this entire notice is retained
     28  1.1  mycroft *	without alteration in any modified and/or redistributed versions,
     29  1.1  mycroft *	and that such modified versions are clearly identified as such.
     30  1.1  mycroft *	No licenses are granted by implication, estoppel or otherwise
     31  1.1  mycroft *	under any patents or trademarks of Motorola, Inc.
     32  1.1  mycroft 
     33  1.1  mycroft *
     34  1.1  mycroft *	x_bsun.sa 3.3 7/1/91
     35  1.1  mycroft *
     36  1.1  mycroft *	fpsp_bsun --- FPSP handler for branch/set on unordered exception
     37  1.1  mycroft *
     38  1.3      wiz *	Copy the PC to FPIAR to maintain 881/882 compatibility
     39  1.1  mycroft *
     40  1.1  mycroft *	The real_bsun handler will need to perform further corrective
     41  1.1  mycroft *	measures as outlined in the 040 User's Manual on pages
     42  1.1  mycroft *	9-41f, section 9.8.3.
     43  1.1  mycroft *
     44  1.1  mycroft 
     45  1.1  mycroft X_BSUN	IDNT    2,1 Motorola 040 Floating Point Software Package
     46  1.1  mycroft 
     47  1.1  mycroft 	section	8
     48  1.1  mycroft 
     49  1.1  mycroft 	include	fpsp.h
     50  1.1  mycroft 
     51  1.1  mycroft 	xref	real_bsun
     52  1.1  mycroft 
     53  1.1  mycroft 	xdef	fpsp_bsun
     54  1.1  mycroft fpsp_bsun:
     55  1.1  mycroft *
     56  1.1  mycroft 	link		a6,#-LOCAL_SIZE
     57  1.1  mycroft 	fsave		-(a7)
     58  1.1  mycroft 	movem.l		d0-d1/a0-a1,USER_DA(a6)
     59  1.1  mycroft 	fmovem.x	fp0-fp3,USER_FP0(a6)
     60  1.1  mycroft 	fmovem.l	fpcr/fpsr/fpiar,USER_FPCR(a6)
     61  1.1  mycroft 
     62  1.1  mycroft *
     63  1.1  mycroft 	move.l		EXC_PC(a6),USER_FPIAR(a6)
     64  1.1  mycroft *
     65  1.1  mycroft 	movem.l		USER_DA(a6),d0-d1/a0-a1
     66  1.1  mycroft 	fmovem.x	USER_FP0(a6),fp0-fp3
     67  1.1  mycroft 	fmovem.l	USER_FPCR(a6),fpcr/fpsr/fpiar
     68  1.1  mycroft 	frestore	(a7)+
     69  1.1  mycroft 	unlk		a6
     70  1.1  mycroft 	bra.l		real_bsun
     71  1.1  mycroft *
     72  1.1  mycroft 	end
     73