diff options
author | Michael Trimarchi <trimarchimichael@yahoo.it> | 2009-08-20 13:27:44 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-20 13:27:44 +0900 |
commit | 6503fe4a6508673c15a509ec4ac3ca5979ae9593 (patch) | |
tree | fb5b77f9dfc320b7834c8a1ada22469cf247f36b /arch/sh/include | |
parent | 5c9740a8b797c9141a39e8115f5652d7bb28a67d (diff) | |
download | op-kernel-dev-6503fe4a6508673c15a509ec4ac3ca5979ae9593.zip op-kernel-dev-6503fe4a6508673c15a509ec4ac3ca5979ae9593.tar.gz |
sh: Better description of SH-4 PTEA register update.
Signed-off-by: Michael Trimarchi <trimarchimichael@yahoo.it>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/pgtable_32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sh/include/asm/pgtable_32.h b/arch/sh/include/asm/pgtable_32.h index 0db19db..4c4429c 100644 --- a/arch/sh/include/asm/pgtable_32.h +++ b/arch/sh/include/asm/pgtable_32.h @@ -87,6 +87,14 @@ #define _PAGE_PCC_ATR8 0x60000000 /* Attribute Memory space, 8 bit bus */ #define _PAGE_PCC_ATR16 0x60000001 /* Attribute Memory space, 6 bit bus */ +#ifndef CONFIG_X2TLB +/* copy the ptea attributes */ +static inline unsigned long copy_ptea_attributes(unsigned long x) +{ + return ((x >> 28) & 0xe) | (x & 0x1); +} +#endif + /* Mask which drops unused bits from the PTEL value */ #if defined(CONFIG_CPU_SH3) #define _PAGE_CLEAR_FLAGS (_PAGE_PROTNONE | _PAGE_ACCESSED| \ |