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