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

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

diff -u --recursive --new-file v2.4.8/linux/arch/arm/nwfpe/fpmodule.c linux/arch/arm/nwfpe/fpmodule.c
@@ -39,9 +39,6 @@
 #include "fpa11.h"
 #include "fpa11.inl"
 
-/* external data */
-extern FPA11 *fpa11;
-
 /* kernel symbols required for signal handling */
 typedef struct task_struct*	PTASK;
 
@@ -71,9 +68,6 @@
 /* forward declarations */
 extern void nwfpe_enter(void);
 
-/* Address of user registers on the kernel stack. */
-unsigned int *userRegisters;
-
 #ifdef MODULE
 /*
  * Return 0 if we can be unloaded.  This can only happen if
@@ -145,7 +139,7 @@
 #ifdef CONFIG_DEBUG_USER
   printk(KERN_DEBUG "NWFPE: %s[%d] takes exception %08x at %p from %08x\n",
 	 current->comm, current->pid, flags,
-	 __builtin_return_address(0), userRegisters[15]);
+	 __builtin_return_address(0), GET_USERREG()[15]);
 #endif
 
   /* Keep SoftFloat exception flags up to date.  */

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