lkml.org 
[lkml]   [2000]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] highmem fixes

Hi,

Two things:

- We forget to flush the cache before unmapping highmem pages.
- We should use set_pte.

These were found while adding highmem support for sparc32.

Anton

diff -r -u --new-file --exclude-from=exclude linux/mm/highmem.c linux_highmem/mm/highmem.c
--- linux/mm/highmem.c Fri Jul 28 10:41:30 2000
+++ linux_highmem/mm/highmem.c Sun Jul 30 04:06:17 2000
@@ -119,6 +119,8 @@
{
int i;

+ flush_cache_all();
+
for (i = 0; i < LAST_PKMAP; i++) {
struct page *page;
pte_t pte;
@@ -182,7 +184,7 @@
}
}
vaddr = PKMAP_ADDR(last_pkmap_nr);
- pkmap_page_table[last_pkmap_nr] = mk_pte(page, kmap_prot);
+ set_pte(&(pkmap_page_table[last_pkmap_nr]), mk_pte(page, kmap_prot));

pkmap_count[last_pkmap_nr] = 1;
page->virtual = vaddr;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.025 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site