OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [lib/] [libcpu/] [m68k/] [m68040/] [fpsp/] [x_bsun.S] - Blame information for rev 208

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
//
2 208 chris
//      $Id: x_bsun.S,v 1.2 2001-09-27 12:01:22 chris Exp $
3 158 chris
//
4
//      x_bsun.sa 3.3 7/1/91
5
//
6
//      fpsp_bsun --- FPSP handler for branch/set on unordered exception
7
//
8
//      Copy the PC to FPIAR to maintain 881/882 compatibility
9
//
10
//      The real_bsun handler will need to perform further corrective
11
//      measures as outlined in the 040 User's Manual on pages
12
//      9-41f, section 9.8.3.
13
//
14
 
15
//              Copyright (C) Motorola, Inc. 1990
16
//                      All Rights Reserved
17
//
18
//      THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MOTOROLA
19
//      The copyright notice above does not evidence any
20
//      actual or intended publication of such source code.
21
 
22
X_BSUN: //idnt    2,1 | Motorola 040 Floating Point Software Package
23
 
24
        |section        8
25
 
26
#include "fpsp.defs"
27
 
28
        |xref   real_bsun
29
 
30
        .global fpsp_bsun
31
fpsp_bsun:
32
//
33
        link            %a6,#-LOCAL_SIZE
34
        fsave           -(%a7)
35
        moveml          %d0-%d1/%a0-%a1,USER_DA(%a6)
36
        fmovemx %fp0-%fp3,USER_FP0(%a6)
37
        fmoveml %fpcr/%fpsr/%fpiar,USER_FPCR(%a6)
38
 
39
//
40
        movel           EXC_PC(%a6),USER_FPIAR(%a6)
41
//
42
        moveml          USER_DA(%a6),%d0-%d1/%a0-%a1
43
        fmovemx USER_FP0(%a6),%fp0-%fp3
44
        fmoveml USER_FPCR(%a6),%fpcr/%fpsr/%fpiar
45
        frestore        (%a7)+
46
        unlk            %a6
47
        bral            real_bsun
48
//
49
        |end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.