source: rtems/c/src/lib/libcpu/m68k/m68040/fpsp/x_bsun.S @ f8e4755f

5
Last change on this file since f8e4755f was f8e4755f, checked in by Sebastian Huber <sebastian.huber@…>, on 03/26/18 at 09:59:23

bsps/m68k: Use namespace header

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#include "fpsp-namespace.h"
2//
3//
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
22X_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
31fpsp_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
Note: See TracBrowser for help on using the repository browser.