~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/m68k/fpsp040/x_unsupp.S

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/m68k/fpsp040/x_unsupp.S (Architecture m68k) and /arch/i386/fpsp040/x_unsupp.S (Architecture i386)


  1 |                                                 
  2 |       x_unsupp.sa 3.3 7/1/91                    
  3 |                                                 
  4 |       fpsp_unsupp --- FPSP handler for unsup    
  5 |                                                 
  6 | Trap vector #55       (See table 8-1 Mc68030    
  7 | Invoked when the user program encounters a d    
  8 | hardware does not support or a data type (de    
  9 | normalized numbers).                            
 10 | Normalizes denorms and unnorms, unpacks pack    
 11 | them back into the machine to let the 040 fi    
 12 |                                                 
 13 | Unsupp calls two routines:                      
 14 |       1. get_op -  gets the operand(s)          
 15 |       2. res_func - restore the function bac    
 16 |                       if fmove.p fpm,<ea> th    
 17 |                       and store in users mem    
 18 |                                                 
 19 |  Input: Long fsave stack frame                  
 20 |                                                 
 21 |                                                 
 22                                                   
 23 |               Copyright (C) Motorola, Inc. 1    
 24 |                       All Rights Reserved       
 25 |                                                 
 26 |       For details on the license for this fi    
 27 |       file, README, in this same directory.     
 28                                                   
 29 X_UNSUPP:       |idnt    2,1 | Motorola 040 Fl    
 30                                                   
 31         |section        8                         
 32                                                   
 33 #include "fpsp.h"                                 
 34                                                   
 35         |xref   get_op                            
 36         |xref   res_func                          
 37         |xref   gen_except                        
 38         |xref   fpsp_fmt_error                    
 39                                                   
 40         .global fpsp_unsupp                       
 41 fpsp_unsupp:                                      
 42 |                                                 
 43         link            %a6,#-LOCAL_SIZE          
 44         fsave           -(%a7)                    
 45         moveml          %d0-%d1/%a0-%a1,USER_D    
 46         fmovemx %fp0-%fp3,USER_FP0(%a6)           
 47         fmoveml %fpcr/%fpsr/%fpiar,USER_FPCR(%    
 48                                                   
 49                                                   
 50         moveb           (%a7),VER_TMP(%a6) |sa    
 51         moveb           (%a7),%d0                 
 52         andib           #0xf0,%d0                 
 53         cmpib           #VER_4,%d0      |must     
 54         bnel            fpsp_fmt_error            
 55                                                   
 56         fmovel          #0,%FPSR                  
 57         fmovel          #0,%FPCR                  
 58 |                                                 
 59 |       The following lines are used to ensure    
 60 |       exception byte and condition codes are    
 61 |       except in the case of fmove, which lea    
 62 |                                                 
 63 unsupp_con:                                       
 64         movel           USER_FPSR(%a6),%d1        
 65         btst            #5,CMDREG1B(%a6)          
 66         bne             fmove_con                 
 67         andl            #0xFF00FF,%d1   |clear    
 68         bras            end_fix                   
 69 fmove_con:                                        
 70         andl            #0x0FFF40FF,%d1 |clear    
 71 end_fix:                                          
 72         movel           %d1,USER_FPSR(%a6)        
 73                                                   
 74         st              UFLG_TMP(%a6)   |set f    
 75                                                   
 76         bsrl            get_op          |every    
 77         bsrl            res_func        |fix u    
 78         clrl            -(%a7)                    
 79         moveb           VER_TMP(%a6),(%a7) |mo    
 80         bral            gen_except                
 81 |                                                 
 82         |end                                      
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php