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