patch-2.1.9 linux/include/asm-sparc/psr.h
Next file: linux/include/asm-sparc/ptrace.h
Previous file: linux/include/asm-sparc/processor.h
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Sat Nov 9 10:29:58 1996
- Orig file:
v2.1.8/linux/include/asm-sparc/psr.h
- Orig date:
Mon Mar 4 08:50:03 1996
diff -u --recursive --new-file v2.1.8/linux/include/asm-sparc/psr.h linux/include/asm-sparc/psr.h
@@ -1,4 +1,4 @@
-/* $Id: psr.h,v 1.10 1996/03/01 07:20:57 davem Exp $
+/* $Id: psr.h,v 1.12 1996/09/30 02:23:19 davem Exp $
* psr.h: This file holds the macros for masking off various parts of
* the processor status register on the Sparc. This is valid
* for Version 8. On the V9 this is renamed to the PSTATE
@@ -38,18 +38,18 @@
#ifndef __ASSEMBLY__
/* Get the %psr register. */
-extern inline unsigned int get_psr(void)
+extern __inline__ unsigned int get_psr(void)
{
unsigned int psr;
- __asm__ __volatile__("rd %%psr, %0\n\t" :
+ __asm__ __volatile__("rd\t%%psr, %0" :
"=r" (psr));
return psr;
}
-extern inline void put_psr(unsigned int new_psr)
+extern __inline__ void put_psr(unsigned int new_psr)
{
- __asm__ __volatile__("wr %0, 0x0, %%psr\n\t"
- "nop; nop; nop;\n\t" : :
+ __asm__ __volatile__("wr\t%0, 0x0, %%psr\n\t"
+ "nop; nop; nop;" : :
"r" (new_psr));
}
@@ -60,12 +60,12 @@
extern unsigned int fsr_storage;
-extern inline unsigned int get_fsr(void)
+extern __inline__ unsigned int get_fsr(void)
{
unsigned int fsr = 0;
- __asm__ __volatile__("st %%fsr, %1\n\t"
- "ld %1, %0\n\t" :
+ __asm__ __volatile__("st\t%%fsr, %1\n\t"
+ "ld\t%1, %0" :
"=r" (fsr) :
"m" (fsr_storage));
return fsr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov