Commit 5e9c8ac5699f2a830fab2c224b6f57bd7da338b8

Authored by Paul Mundt
1 parent 5286031693

sh: Fix up set_fixmap_nocache() for SH-5.

This needs a PAGE_KERNEL_NOCACHE definition, as provided by pgtable_32.h.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

include/asm-sh/pgtable_64.h
... ... @@ -187,6 +187,11 @@
187 187 _PAGE_WRITE | _PAGE_EXECUTE)
188 188 #define PAGE_KERNEL __pgprot(_KERNPG_TABLE)
189 189  
  190 +#define PAGE_KERNEL_NOCACHE \
  191 + __pgprot(_PAGE_PRESENT | _PAGE_READ | _PAGE_WRITE | \
  192 + _PAGE_EXECUTE | _PAGE_ACCESSED | \
  193 + _PAGE_DIRTY | _PAGE_SHARED)
  194 +
190 195 /* Make it a device mapping for maximum safety (e.g. for mapping device
191 196 registers into user-space via /dev/map). */
192 197 #define pgprot_noncached(x) __pgprot(((x).pgprot & ~(_PAGE_CACHABLE)) | _PAGE_DEVICE)