Commit ea29e98e authored by Christoph Hellwig's avatar Christoph Hellwig

[PATCH] uClinux pgprot bits

parent 9cab89d4
...@@ -140,7 +140,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot) ...@@ -140,7 +140,7 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot)
prot |= _PAGE_PCD | _PAGE_PWT; prot |= _PAGE_PCD | _PAGE_PWT;
#elif defined(__powerpc__) #elif defined(__powerpc__)
prot |= _PAGE_NO_CACHE | _PAGE_GUARDED; prot |= _PAGE_NO_CACHE | _PAGE_GUARDED;
#elif defined(__mc68000__) #elif defined(__mc68000__) && defined(CONFIG_MMU)
#ifdef SUN3_PAGE_NOCACHE #ifdef SUN3_PAGE_NOCACHE
if (MMU_IS_SUN3) if (MMU_IS_SUN3)
prot |= SUN3_PAGE_NOCACHE; prot |= SUN3_PAGE_NOCACHE;
......
...@@ -612,7 +612,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma) ...@@ -612,7 +612,7 @@ fb_mmap(struct file *file, struct vm_area_struct * vma)
#if defined(__mc68000__) #if defined(__mc68000__)
#if defined(CONFIG_SUN3) #if defined(CONFIG_SUN3)
pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE; pgprot_val(vma->vm_page_prot) |= SUN3_PAGE_NOCACHE;
#else #elif defined(CONFIG_MMU)
if (CPU_IS_020_OR_030) if (CPU_IS_020_OR_030)
pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030; pgprot_val(vma->vm_page_prot) |= _PAGE_NOCACHE030;
if (CPU_IS_040_OR_060) { if (CPU_IS_040_OR_060) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment