patch-2.4.9 linux/arch/arm/nwfpe/fpa11.c
Next file: linux/arch/arm/nwfpe/fpa11.h
Previous file: linux/arch/arm/nwfpe/extended_cpdo.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Aug 12 11:13:59 2001
- Orig file:
v2.4.8/linux/arch/arm/nwfpe/fpa11.c
- Orig date:
Wed Apr 11 19:02:27 2001
diff -u --recursive --new-file v2.4.8/linux/arch/arm/nwfpe/fpa11.c linux/arch/arm/nwfpe/fpa11.c
@@ -32,14 +32,12 @@
unsigned int EmulateCPDT(const unsigned int);
unsigned int EmulateCPRT(const unsigned int);
-/* Emulator registers */
-FPA11 *fpa11;
-
/* Reset the FPA11 chip. Called to initialize and reset the emulator. */
void resetFPA11(void)
{
int i;
-
+ FPA11 *fpa11 = GET_FPA11();
+
/* initialize the register type array */
for (i=0;i<=7;i++)
{
@@ -130,8 +128,10 @@
{
unsigned int nRc = 0;
unsigned long flags;
-
+ FPA11 *fpa11;
save_flags(flags); sti();
+
+ fpa11 = GET_FPA11();
if (fpa11->initflag == 0) /* good place for __builtin_expect */
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)