patch-2.4.9 linux/arch/arm/nwfpe/fpmodule.inl

Next file: linux/arch/arm/nwfpe/single_cpdo.c
Previous file: linux/arch/arm/nwfpe/fpmodule.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/arch/arm/nwfpe/fpmodule.inl linux/arch/arm/nwfpe/fpmodule.inl
@@ -19,9 +19,6 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-/* Address of user registers on the kernel stack. */
-extern unsigned int *userRegisters;
-
 extern __inline__
 unsigned int readRegister(const unsigned int nReg)
 {
@@ -32,6 +29,7 @@
            for this in this routine.  LDF/STF instructions with Rn = PC
            depend on the PC being correct, as they use PC+8 in their 
            address calculations. */
+  unsigned int *userRegisters = GET_USERREG();
   unsigned int val = userRegisters[nReg];
   if (REG_PC == nReg) val -= 4;
   return val;
@@ -40,6 +38,7 @@
 extern __inline__
 void writeRegister(const unsigned int nReg, const unsigned int val)
 {
+  unsigned int *userRegisters = GET_USERREG();
   userRegisters[nReg] = val;
 }
 
@@ -68,6 +67,7 @@
 extern __inline__
 void writeConditionCodes(const unsigned int val)
 {
+  unsigned int *userRegisters = GET_USERREG();
   unsigned int rval;
   /*
    * Operate directly on userRegisters since

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)