[BACK]Return to psl.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / sparc64 / 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/sparc64/include/psl.h between version 1.30.4.1 and 1.31

version 1.30.4.1, 2006/09/09 02:43:47 version 1.31, 2006/02/16 20:17:15
Line 81 
Line 81 
 #define PIL_TTY         6  #define PIL_TTY         6
 #define PIL_LPT         6  #define PIL_LPT         6
 #define PIL_NET         6  #define PIL_NET         6
 #define PIL_VM          7  #define PIL_IMP         7
 #define PIL_AUD         8  #define PIL_AUD         8
 #define PIL_CLOCK       10  #define PIL_CLOCK       10
 #define PIL_FD          11  #define PIL_FD          11
 #define PIL_SER         12  #define PIL_SER         12
 #define PIL_STATCLOCK   14  
 #define PIL_HIGH        15  #define PIL_HIGH        15
 #define PIL_SCHED       PIL_CLOCK  #define PIL_SCHED       PIL_CLOCK
 #define PIL_LOCK        PIL_HIGH  #define PIL_LOCK        PIL_HIGH
Line 310  intr_restore(int pstate)
Line 309  intr_restore(int pstate)
  */   */
   
 #ifdef SPLDEBUG  #ifdef SPLDEBUG
 void prom_printf(const char *fmt, ...);  void prom_printf __P((const char *fmt, ...));
 extern int printspl;  extern int printspl;
 #define SPLPRINT(x) \  #define SPLPRINT(x) \
 { \  { \
Line 366  static __inline int name(void) \
Line 365  static __inline int name(void) \
 }  }
 #endif  #endif
   
 static __inline int __attribute__((__unused__))  
 splraiseipl(int newpil)  
 {  
         int oldpil;  
   
         /*  
          * NetBSD/sparc64's IPL_* constants equate directly to the  
          * corresponding PIL_* names; no need to map them here.  
          */  
         __asm __volatile("rdpr %%pil,%0" : "=r" (oldpil));  
         if (newpil <= oldpil)  
                 return (oldpil);  
         __asm __volatile("wrpr %0,0,%%pil" : : "r" (newpil));  
         return (oldpil);  
 }  
   
 SPL(spl0, 0)  SPL(spl0, 0)
   
 SPL(spllowersoftclock, 1)  SPL(spllowersoftclock, 1)
Line 413  SPLHOLD(spllpt, PIL_LPT)
Line 396  SPLHOLD(spllpt, PIL_LPT)
 /*  /*
  * Memory allocation (must be as high as highest network, tty, or disk device)   * Memory allocation (must be as high as highest network, tty, or disk device)
  */   */
 SPLHOLD(splvm, PIL_VM)  SPLHOLD(splvm, PIL_IMP)
   
 SPLHOLD(splclock, PIL_CLOCK)  SPLHOLD(splclock, PIL_CLOCK)
   
Line 428  SPLHOLD(splserial, PIL_SER)
Line 411  SPLHOLD(splserial, PIL_SER)
 SPLHOLD(splaudio, PIL_AUD)  SPLHOLD(splaudio, PIL_AUD)
   
 /* second sparc timer interrupts at level 14 */  /* second sparc timer interrupts at level 14 */
 SPLHOLD(splstatclock, PIL_STATCLOCK)  SPLHOLD(splstatclock, 14)
   
 SPLHOLD(splsched, PIL_SCHED)  SPLHOLD(splsched, PIL_SCHED)
 SPLHOLD(spllock, PIL_LOCK)  SPLHOLD(spllock, PIL_LOCK)

Legend:
Removed from v.1.30.4.1  
changed lines
  Added in v.1.31

CVSweb <webmaster@jp.NetBSD.org>