1 | 1 | 2 | x_bsun.sa 3.3 7/1/91 2 | x_bsun.sa 3.3 7/1/91 3 | 3 | 4 | fpsp_bsun --- FPSP handler for branch/ 4 | fpsp_bsun --- FPSP handler for branch/set on unordered exception 5 | 5 | 6 | Copy the PC to FPIAR to maintain 881/8 6 | Copy the PC to FPIAR to maintain 881/882 compatibility 7 | 7 | 8 | The real_bsun handler will need to per 8 | The real_bsun handler will need to perform further corrective 9 | measures as outlined in the 040 User's 9 | measures as outlined in the 040 User's Manual on pages 10 | 9-41f, section 9.8.3. 10 | 9-41f, section 9.8.3. 11 | 11 | 12 12 13 | Copyright (C) Motorola, Inc. 1 13 | Copyright (C) Motorola, Inc. 1990 14 | All Rights Reserved 14 | All Rights Reserved 15 | 15 | 16 | For details on the license for this fi 16 | For details on the license for this file, please see the 17 | file, README, in this same directory. 17 | file, README, in this same directory. 18 18 19 X_BSUN: |idnt 2,1 | Motorola 040 Floating P 19 X_BSUN: |idnt 2,1 | Motorola 040 Floating Point Software Package 20 20 21 |section 8 21 |section 8 22 22 23 #include "fpsp.h" 23 #include "fpsp.h" 24 24 25 |xref real_bsun 25 |xref real_bsun 26 26 27 .global fpsp_bsun 27 .global fpsp_bsun 28 fpsp_bsun: 28 fpsp_bsun: 29 | 29 | 30 link %a6,#-LOCAL_SIZE 30 link %a6,#-LOCAL_SIZE 31 fsave -(%a7) 31 fsave -(%a7) 32 moveml %d0-%d1/%a0-%a1,USER_D 32 moveml %d0-%d1/%a0-%a1,USER_DA(%a6) 33 fmovemx %fp0-%fp3,USER_FP0(%a6) 33 fmovemx %fp0-%fp3,USER_FP0(%a6) 34 fmoveml %fpcr/%fpsr/%fpiar,USER_FPCR(% 34 fmoveml %fpcr/%fpsr/%fpiar,USER_FPCR(%a6) 35 35 36 | 36 | 37 movel EXC_PC(%a6),USER_FPIAR 37 movel EXC_PC(%a6),USER_FPIAR(%a6) 38 | 38 | 39 moveml USER_DA(%a6),%d0-%d1/% 39 moveml USER_DA(%a6),%d0-%d1/%a0-%a1 40 fmovemx USER_FP0(%a6),%fp0-%fp3 40 fmovemx USER_FP0(%a6),%fp0-%fp3 41 fmoveml USER_FPCR(%a6),%fpcr/%fpsr/%fp 41 fmoveml USER_FPCR(%a6),%fpcr/%fpsr/%fpiar 42 frestore (%a7)+ 42 frestore (%a7)+ 43 unlk %a6 43 unlk %a6 44 bral real_bsun 44 bral real_bsun 45 | 45 | 46 |end 46 |end
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.