diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-06-26 02:14:36 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2009-08-31 12:38:11 -0400 |
commit | d8fb91e8344ff11381fc47d43e0b234065be4bd0 (patch) | |
tree | 36b72b3b6fff5f53d53cc14587dbc96f73d29ae5 /arch/cris/include/arch-v32 | |
parent | adda766193ea1cf3137484a9521972d080d0b7af (diff) |
CRIS: add pgprot_noncached
On CRIS, the high address bit controls caching, which means that
we can add a pgprot_noncached() macro that sets this bit in the
address.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/include/arch-v32')
-rw-r--r-- | arch/cris/include/arch-v32/arch/mmu.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/cris/include/arch-v32/arch/mmu.h b/arch/cris/include/arch-v32/arch/mmu.h index 6bcdc3fdf7dc..c1a13e05e963 100644 --- a/arch/cris/include/arch-v32/arch/mmu.h +++ b/arch/cris/include/arch-v32/arch/mmu.h | |||
@@ -28,10 +28,10 @@ typedef struct | |||
28 | /* | 28 | /* |
29 | * CRISv32 PTE bits: | 29 | * CRISv32 PTE bits: |
30 | * | 30 | * |
31 | * Bit: 31-13 12-5 4 3 2 1 0 | 31 | * Bit: 31 30-13 12-5 4 3 2 1 0 |
32 | * +-----+------+--------+-------+--------+-------+---------+ | 32 | * +-------+-----+------+--------+-------+--------+-------+---------+ |
33 | * | pfn | zero | global | valid | kernel | write | execute | | 33 | * | cache | pfn | zero | global | valid | kernel | write | execute | |
34 | * +-----+------+--------+-------+--------+-------+---------+ | 34 | * +-------+-----+------+--------+-------+--------+-------+---------+ |
35 | */ | 35 | */ |
36 | 36 | ||
37 | /* | 37 | /* |
@@ -45,6 +45,8 @@ typedef struct | |||
45 | #define _PAGE_VALID (1 << 3) /* Page is valid. */ | 45 | #define _PAGE_VALID (1 << 3) /* Page is valid. */ |
46 | #define _PAGE_SILENT_READ (1 << 3) /* Same as above. */ | 46 | #define _PAGE_SILENT_READ (1 << 3) /* Same as above. */ |
47 | #define _PAGE_GLOBAL (1 << 4) /* Global page. */ | 47 | #define _PAGE_GLOBAL (1 << 4) /* Global page. */ |
48 | #define _PAGE_NO_CACHE (1 << 31) /* part of the uncached memory map */ | ||
49 | |||
48 | 50 | ||
49 | /* | 51 | /* |
50 | * The hardware doesn't care about these bits, but the kernel uses them in | 52 | * The hardware doesn't care about these bits, but the kernel uses them in |