patch-2.4.0-test2 linux/arch/ppc/8xx_io/commproc.c

Next file: linux/arch/ppc/8xx_io/enet.c
Previous file: linux/arch/ppc/8xx_io/Config.in
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/arch/ppc/8xx_io/commproc.c linux/arch/ppc/8xx_io/commproc.c
@@ -94,9 +94,9 @@
 	*/
 	host_buffer = host_page_addr;	/* Host virtual page address */
 	host_end = host_page_addr + PAGE_SIZE;
-	pte = find_pte(&init_mm, host_page_addr);
+	pte = va_to_pte(host_page_addr);
 	pte_val(*pte) |= _PAGE_NO_CACHE;
-	flush_tlb_page(current->mm->mmap, host_buffer);
+	flush_tlb_page(init_mm.mmap, host_buffer);
 
 	/* Tell everyone where the comm processor resides.
 	*/

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