[BACK]Return to psl.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / sparc / include

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/include/psl.h between version 1.39 and 1.39.4.1

version 1.39, 2006/02/16 20:17:15 version 1.39.4.1, 2006/05/11 23:27:03
Line 299  _SPLSET(spllowerschedclock, IPL_SCHED)
Line 299  _SPLSET(spllowerschedclock, IPL_SCHED)
   
 /* Raise IPL and return previous value */  /* Raise IPL and return previous value */
 static __inline int  static __inline int
 splraise(int newipl)  splraiseipl(int newipl)
 {  {
         int psr, oldipl;          int psr, oldipl;
   
Line 318  splraise(int newipl)
Line 318  splraise(int newipl)
         return (oldipl);          return (oldipl);
 }  }
   
 #define splsoftclock()  splraise(IPL_SOFTCLOCK)  #include <sys/spl.h>
 #define splsoftnet()    splraise(IPL_SOFTNET)  
   
 #define splausoft()     splraise(IPL_SOFTAUDIO)  #define splausoft()     splraiseipl(IPL_SOFTAUDIO)
 #define splfdsoft()     splraise(IPL_SOFTFDC)  #define splfdsoft()     splraiseipl(IPL_SOFTFDC)
   
 #define splbio()        splraise(IPL_BIO)  #define splfd()         splraiseipl(IPL_FD)
 #define spltty()        splraise(IPL_TTY)  #define splts102()      splraiseipl(IPL_TS102)
 #define splnet()        splraise(IPL_NET)  
 #define splvm()         splraise(IPL_VM)  
 #define splclock()      splraise(IPL_CLOCK)  
 #define splsched()      splraise(IPL_SCHED)  
   
 /* fd hardware, ts102, and tadpole microcontoller interrupts are at level 11 */  
 #define splfd()         splraise(11)  
 #define splts102()      splraise(11)  
   
 /*  
  * zs hardware interrupts are at level 12  
  * su (com) hardware interrupts are at level 13  
  * IPL_SERIAL must protect them all.  
  */  
 #define splzs()         splraise(12)  
 #define splserial()     splraise(IPL_SERIAL)  
   
 #define splaudio()      splraise(IPL_AUDIO)  #define splzs()         splraiseipl(IPL_ZS)
   
 #define splstatclock()  splraise(IPL_STATCLOCK)  
   
 static __inline int  
 splhigh(void)  
 {  
         int psr, oldipl;  
   
         __asm volatile("rd %%psr,%0" : "=r" (psr));  
         __asm volatile("wr %0,0,%%psr" : : "r" (psr | PSR_PIL));  
         __asm volatile("and %1,%2,%0; nop; nop" : "=r" (oldipl) : \  
             "r" (psr), "n" (PSR_PIL));  
         return (oldipl);  
 }  
   
 #define spllock()       splhigh()  
   
 /* splx does not have a return value */  /* splx does not have a return value */
 static __inline void  static __inline void

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.39.4.1

CVSweb <webmaster@jp.NetBSD.org>