patch-2.3.26 linux/arch/sh/mm/init.c
Next file: linux/arch/sparc/config.in
Previous file: linux/arch/sh/mm/fault.c
Back to the patch index
Back to the overall index
-  Lines: 23
-  Date:
Sat Nov  6 10:40:31 1999
-  Orig file: 
v2.3.25/linux/arch/sh/mm/init.c
-  Orig date: 
Wed Oct 27 16:34:12 1999
diff -u --recursive --new-file v2.3.25/linux/arch/sh/mm/init.c linux/arch/sh/mm/init.c
@@ -1,4 +1,4 @@
-/* $Id: init.c,v 1.4 1999/10/23 01:37:02 gniibe Exp $
+/* $Id: init.c,v 1.4 1999/10/23 01:37:02 gniibe Exp gniibe $
  *
  *  linux/arch/sh/mm/init.c
  *
@@ -193,13 +193,14 @@
  */
 void __init paging_init(void)
 {
+	int i;
 	pgd_t * pg_dir;
 
 	/* We don't need kernel mapping as hardware support that. */
 	pg_dir = swapper_pg_dir;
 
-	/* Unmap the original low memory mappings to detect NULL reference */
-	pgd_val(pg_dir[0]) = 0;
+	for (i=0; i < USER_PTRS_PER_PGD*2; i++)
+		pgd_val(pg_dir[i]) = 0;
 
 	/* Enable MMU */
 	ctrl_outl(MMU_CONTROL_INIT, MMUCR);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)