patch-2.1.97 linux/arch/sparc/prom/segment.c
Next file: linux/arch/sparc/prom/sun4prom.c
Previous file: linux/arch/sparc/prom/ranges.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Tue Apr 14 17:44:20 1998
- Orig file:
v2.1.96/linux/arch/sparc/prom/segment.c
- Orig date:
Thu May 15 16:48:02 1997
diff -u --recursive --new-file v2.1.96/linux/arch/sparc/prom/segment.c linux/arch/sparc/prom/segment.c
@@ -1,4 +1,4 @@
-/* $Id: segment.c,v 1.5 1997/05/14 20:45:02 davem Exp $
+/* $Id: segment.c,v 1.6 1998/03/09 14:04:27 jj Exp $
* segment.c: Prom routine to map segments in other contexts before
* a standalone is completely mapped. This is for sun4 and
* sun4c architectures only.
@@ -12,8 +12,7 @@
#include <asm/openprom.h>
#include <asm/oplib.h>
-/* XXX Let's get rid of this thing if we can... */
-extern struct task_struct *current_set[NR_CPUS];
+extern void restore_current(void);
/* Set physical segment 'segment' at virtual address 'vaddr' in
* context 'ctx'.
@@ -24,9 +23,7 @@
unsigned long flags;
save_flags(flags); cli();
(*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment);
- __asm__ __volatile__("ld [%0], %%g6\n\t" : :
- "r" (¤t_set[hard_smp_processor_id()]) :
- "memory");
+ restore_current();
restore_flags(flags);
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov