diff options
author | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1997-07-31 22:57:10 +0000 |
---|---|---|
committer | Miguel de Icaza <miguel@nuclecu.unam.mx> | 1997-07-31 22:57:10 +0000 |
commit | 9765588f1533bde5f6af8056525368b301d72989 (patch) | |
tree | eecfacde0115baf8cd67323981b2e20404fc683d /include/asm-mips | |
parent | 5fd44fa07fcc1a00e75622a2ae5f6463a6c06be0 (diff) |
Changes required to share a piece of memory between kernel in
interrupt-land and a user application.
Vmalloc is now an inline function that calls vmalloc_prot with
the original protection bits used in vmalloc.
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/pgtable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index f8785b9b5..3717bb398 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h @@ -16,6 +16,7 @@ * - flush_cache_page(mm, vmaddr) flushes a single page * - flush_cache_range(mm, start, end) flushes a range of pages * - flush_page_to_ram(page) write back kernel page to ram + * */ extern void (*flush_cache_all)(void); extern void (*flush_cache_mm)(struct mm_struct *mm); @@ -132,6 +133,9 @@ extern void (*add_wired_entry)(unsigned long entrylo0, unsigned long entrylo1, _CACHE_CACHABLE_NONCOHERENT) #define PAGE_USERIO __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \ _CACHE_UNCACHED) +#define PAGE_KERNEL_UNCACHED __pgprot(_PAGE_PRESENT | __READABLE | __WRITEABLE | \ + _CACHE_UNCACHED) + /* * MIPS can't do page protection for execute, and considers that the same like * read. Also, write permissions imply read permissions. This is the closest |