Port-sparc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: Automated regression tests of NetBSD/sparc failing



with the following patch it seems to work for me.  i can't commit
right now due to some other issues.


.mrg.


Index: include/psl.h
===================================================================
RCS file: /cvsroot/src/sys/arch/sparc/include/psl.h,v
retrieving revision 1.47
diff -p -u -r1.47 psl.h
--- include/psl.h       16 Jul 2011 11:15:52 -0000      1.47
+++ include/psl.h       28 Aug 2011 12:44:15 -0000
@@ -232,7 +232,7 @@
 /*
  * GCC pseudo-functions for manipulating PSR (primarily PIL field).
  */
-static __inline int
+static __inline __attribute__((always_inline)) int
 getpsr(void)
 {
        int psr;
@@ -241,7 +241,7 @@ getpsr(void)
        return (psr);
 }
 
-static __inline int
+static __inline __attribute__((always_inline)) int
 getmid(void)
 {
        int mid;
@@ -250,14 +250,14 @@ getmid(void)
        return ((mid >> 20) & 0x3);
 }
 
-static __inline void
+static __inline __attribute__((always_inline)) void
 setpsr(int newpsr)
 {
        __asm volatile("wr %0,0,%%psr" : : "r" (newpsr) : "memory");
        __asm volatile("nop; nop; nop");
 }
 
-static __inline void
+static __inline __attribute__((always_inline)) void
 spl0(void)
 {
        int psr, oldipl;


Home | Main Index | Thread Index | Old Index