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