linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Allow sysmap to be used on non CONFIG_ALL_PPC
@ 2002-02-09  1:47 Val Henson
  0 siblings, 0 replies; only message in thread
From: Val Henson @ 2002-02-09  1:47 UTC (permalink / raw)
  To: linuxppc-dev


This patch allows the System.map to be stored in RAM on non
CONFIG_ALL_PPC architectures.

(Note: Gemini is still an easy candidate for CONFIG_ALL_PPC.)

-VAL

diff -Nru a/arch/ppc/mm/init.c b/arch/ppc/mm/init.c
--- a/arch/ppc/mm/init.c	Fri Feb  8 15:12:57 2002
+++ b/arch/ppc/mm/init.c	Fri Feb  8 15:12:57 2002
@@ -581,9 +581,6 @@
 	/* remove the RTAS pages from the available memory */
 	if (rtas_data)
 		mem_pieces_remove(&phys_avail, rtas_data, rtas_size, 1);
-	/* remove the sysmap pages from the available memory */
-	if (sysmap)
-		mem_pieces_remove(&phys_avail, __pa(sysmap), sysmap_size, 1);
 	/* Because of some uninorth weirdness, we need a page of
 	 * memory as high as possible (it must be outside of the
 	 * bus address seen as the AGP aperture). It will be used
@@ -599,6 +596,9 @@
 		agp_special_page = (unsigned long)__va(agp_special_page);
 	}
 #endif /* CONFIG_ALL_PPC */
+	/* remove the sysmap pages from the available memory */
+	if (sysmap)
+		mem_pieces_remove(&phys_avail, __pa(sysmap), sysmap_size, 1);
 }

 /* Mark some memory as reserved by removing it from phys_avail. */

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-09  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-09  1:47 [PATCH] Allow sysmap to be used on non CONFIG_ALL_PPC Val Henson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).