patch-1.3.4 linux/arch/sparc/prom/segment.c
Next file: linux/arch/sparc/prom/tree.c
Previous file: linux/arch/sparc/prom/ranges.c
Back to the patch index
Back to the overall index
-  Lines: 20
 -  Date:
Sun Jun  4 21:17:54 1995
 -  Orig file: 
v1.3.3/linux/arch/sparc/prom/segment.c
 -  Orig date: 
Thu Jan  1 02:00:00 1970
 
diff -u --recursive --new-file v1.3.3/linux/arch/sparc/prom/segment.c linux/arch/sparc/prom/segment.c
@@ -0,0 +1,19 @@
+/* segment.c:  Prom routine to map segments in other contexts before
+ *             a standalone is completely mapped.  This is for sun4 and
+ *             sun4c architectures only.
+ *
+ * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
+ */
+
+#include <asm/openprom.h>
+#include <asm/oplib.h>
+
+/* Set physical segment 'segment' at virtual address 'vaddr' in
+ * context 'ctx'.
+ */
+void
+prom_putsegment(int ctx, unsigned long vaddr, int segment)
+{
+	(*(romvec->pv_setctxt))(ctx, (char *) vaddr, segment);
+	return;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this