patch-2.4.27 linux-2.4.27/arch/sparc64/mm/init.c

Next file: linux-2.4.27/arch/sparc64/prom/memory.c
Previous file: linux-2.4.27/arch/sparc64/mm/fault.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/sparc64/mm/init.c linux-2.4.27/arch/sparc64/mm/init.c
@@ -1433,8 +1433,10 @@
 	/* Now can init the kernel/bad page tables. */
 	pgd_set(&swapper_pg_dir[0], swapper_pmd_dir + (shift / sizeof(pgd_t)));
 	
-	sparc64_vpte_patchme1[0] |= (pgd_val(init_mm.pgd[0]) >> 10);
-	sparc64_vpte_patchme2[0] |= (pgd_val(init_mm.pgd[0]) & 0x3ff);
+	sparc64_vpte_patchme1[0] |=
+		(((unsigned long)pgd_val(init_mm.pgd[0])) >> 10);
+	sparc64_vpte_patchme2[0] |=
+		(((unsigned long)pgd_val(init_mm.pgd[0])) & 0x3ff);
 	flushi((long)&sparc64_vpte_patchme1[0]);
 	
 	/* Setup bootmem... */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)