patch-2.1.38 linux/arch/sparc/kernel/setup.c

Next file: linux/arch/sparc/kernel/signal.c
Previous file: linux/arch/sparc/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.37/linux/arch/sparc/kernel/setup.c linux/arch/sparc/kernel/setup.c
@@ -1,4 +1,4 @@
-/*  $Id: setup.c,v 1.83 1997/04/01 02:21:49 davem Exp $
+/*  $Id: setup.c,v 1.84 1997/05/08 17:45:16 davem Exp $
  *  linux/arch/sparc/kernel/setup.c
  *
  *  Copyright (C) 1995  David S. Miller (davem@caip.rutgers.edu)
@@ -83,7 +83,8 @@
 
 #ifdef __SMP__
 	global_irq_holder = NO_PROC_ID;
-	global_irq_lock = global_bh_lock = 0;
+	*((unsigned char *)&global_irq_lock) = 0;
+	*((unsigned char *)&global_bh_lock) = 0;
 #endif
 	__save_and_cli(flags);
 	__asm__ __volatile__("rd %%tbr, %0\n\t" : "=r" (prom_tbr));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov