patch-2.1.37 linux/arch/sparc/prom/console.c

Next file: linux/arch/sparc/prom/devmap.c
Previous file: linux/arch/sparc/mm/sun4c.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/arch/sparc/prom/console.c linux/arch/sparc/prom/console.c
@@ -1,4 +1,4 @@
-/* $Id: console.c,v 1.11 1997/03/18 17:58:10 jj Exp $
+/* $Id: console.c,v 1.12 1997/05/01 01:41:30 davem Exp $
  * console.c: Routines that deal with sending and receiving IO
  *            to/from the current console device using the PROM.
  *
@@ -42,7 +42,7 @@
 		break;
 	};
 	__asm__ __volatile__("ld [%0], %%g6\n\t" : :
-			     "r" (&current_set[smp_processor_id()]) :
+			     "r" (&current_set[hard_smp_processor_id()]) :
 			     "memory");
 	restore_flags(flags);
 	return i; /* Ugh, we could spin forever on unsupported proms ;( */
@@ -83,7 +83,7 @@
 		break;
 	};
 	__asm__ __volatile__("ld [%0], %%g6\n\t" : :
-			     "r" (&current_set[smp_processor_id()]) :
+			     "r" (&current_set[hard_smp_processor_id()]) :
 			     "memory");
 	restore_flags(flags);
 	return i; /* Ugh, we could spin forever on unsupported proms ;( */
@@ -130,7 +130,7 @@
 		save_flags(flags); cli();
 		st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdin);
 		__asm__ __volatile__("ld [%0], %%g6\n\t" : :
-				     "r" (&current_set[smp_processor_id()]) :
+				     "r" (&current_set[hard_smp_processor_id()]) :
 				     "memory");
 		restore_flags(flags);
 		if(prom_node_has_property(st_p, "keyboard"))
@@ -177,7 +177,7 @@
 		save_flags(flags); cli();
 		st_p = (*romvec->pv_v2devops.v2_inst2pkg)(*romvec->pv_v2bootargs.fd_stdout);
 		__asm__ __volatile__("ld [%0], %%g6\n\t" : :
-				     "r" (&current_set[smp_processor_id()]) :
+				     "r" (&current_set[hard_smp_processor_id()]) :
 				     "memory");
 		restore_flags(flags);
 		propl = prom_getproperty(st_p, "device_type", propb, sizeof(propb));

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