[BACK]Return to locore.s CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / sparc / sparc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/sparc/sparc/locore.s between version 1.273 and 1.274

version 1.273, 2019/04/06 03:06:27 version 1.274, 2019/06/07 00:18:26
Line 5649  ENTRY(ipi_savefpstate)
Line 5649  ENTRY(ipi_savefpstate)
   
 ENTRY(savefpstate)  ENTRY(savefpstate)
         cmp     %o0, 0          cmp     %o0, 0
         bz      Lfp_null_fpstate  
          nop  
         rd      %psr, %o1               ! enable FP before we begin          rd      %psr, %o1               ! enable FP before we begin
         set     PSR_EF, %o2          set     PSR_EF, %o2
         or      %o1, %o2, %o1          or      %o1, %o2, %o1
Line 5692  Lfp_finish:
Line 5690  Lfp_finish:
         retl          retl
          std    %f30, [%o0 + FS_REGS + (4*30)]           std    %f30, [%o0 + FS_REGS + (4*30)]
   
 /* Handle NULL fpstate argument for savefpstate */  
 Lfp_null_fpstate:  
 #ifdef DIAGNOSTIC  
         ld      [%o5 + CPUINFO_CPUNO], %o1  
         sethi   %hi(Lpanic_savefpstate), %o0  
         call    _C_LABEL(panic)  
          or     %o0, %lo(Lpanic_savefpstate), %o0  
 #else  
         sethi   %hi(CPUINFO_VA), %o5  
         ldd     [%o5 + CPUINFO_SAVEFPSTATE_NULL], %o2  
         inccc   %o3  
         addx    %o2, 0, %o2  
         retl  
          std    %o2, [%o5 + CPUINFO_SAVEFPSTATE_NULL]  
 #endif  
   
 /*  /*
  * Store the (now known nonempty) FP queue.   * Store the (now known nonempty) FP queue.
  * We have to reread the fsr each time in order to get the new QNE bit.   * We have to reread the fsr each time in order to get the new QNE bit.

Legend:
Removed from v.1.273  
changed lines
  Added in v.1.274

CVSweb <webmaster@jp.NetBSD.org>