diff options
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 9b2ae2c06..0f67f6e8b 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -145,9 +145,12 @@ static inline pgprot_t pgprot_noncached(pgprot_t _prot) #elif defined(__powerpc__) prot |= _PAGE_NO_CACHE | _PAGE_GUARDED; #elif defined(__mc68000__) +#ifdef SUN3_PAGE_NOCACHE if (MMU_IS_SUN3) prot |= SUN3_PAGE_NOCACHE; - else if (MMU_IS_851 || MMU_IS_030) + else +#endif + if (MMU_IS_851 || MMU_IS_030) prot |= _PAGE_NOCACHE030; /* Use no-cache mode, serialized */ else if (MMU_IS_040 || MMU_IS_060) |