patch-2.4.27 linux-2.4.27/include/asm-sparc64/mmu_context.h
Next file: linux-2.4.27/include/asm-sparc64/page.h
Previous file: linux-2.4.27/include/asm-sh64/unistd.h
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
2004-08-07 16:26:06.166408906 -0700
-  Orig file: 
linux-2.4.26/include/asm-sparc64/mmu_context.h
-  Orig date: 
2001-08-28 07:09:44.000000000 -0700
diff -urN linux-2.4.26/include/asm-sparc64/mmu_context.h linux-2.4.27/include/asm-sparc64/mmu_context.h
@@ -83,7 +83,8 @@
 	paddr = __pa((__mm)->pgd); \
 	pgd_cache = 0UL; \
 	if ((__tsk)->thread.flags & SPARC_FLAG_32BIT) \
-		pgd_cache = pgd_val((__mm)->pgd[0]) << 11UL; \
+		pgd_cache = \
+		   ((unsigned long)pgd_val((__mm)->pgd[0])) << 11UL; \
 	__asm__ __volatile__("wrpr	%%g0, 0x494, %%pstate\n\t" \
 			     "mov	%3, %%g4\n\t" \
 			     "mov	%0, %%g7\n\t" \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)