[PATCH] x86_64: Flush correctly when more than one page is getting flushed

Linux Kernel Mailing List <[email protected]> Thu, 07 Apr 2005 12:09:35 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1502, 2005/04/07 09:09:35-03:00, [email protected]

	[PATCH] x86_64: Flush correctly when more than one page is getting flushed
	
	Flush correctly when more than one page is getting flushed
	
	Found and fixed by Andrea
	
	Signed-off-by: Andi Kleen <[email protected]>
	
	Index: linux/arch/x86_64/mm/pageattr.c
	===================================================================



 pageattr.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/arch/x86_64/mm/pageattr.c b/arch/x86_64/mm/pageattr.c
--- a/arch/x86_64/mm/pageattr.c	2005-04-07 11:04:16 -07:00
+++ b/arch/x86_64/mm/pageattr.c	2005-04-07 11:04:16 -07:00
@@ -55,7 +55,7 @@
 			asm volatile("clflush (%0)" :: "r" (address + i)); 
 	} else
 		asm volatile("wbinvd":::"memory"); 
-	__flush_tlb_one(address);
+	__flush_tlb_all();
 }
 
 /* no more special protections in this 2MB area - revert to a