diff options
author | Hassan Naveed <hnaveed@wavecomp.com> | 2018-10-30 02:27:41 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2018-11-05 19:15:28 +0100 |
commit | b3a428b4b18d495a06f39515568850f8db4c98ea (patch) | |
tree | 77c882b8cbe9c262855ebe5794a8c096ead8c96f /arch/mips/include/asm/page.h | |
parent | MIPS: math-emu: Change to use DEFINE_SHOW_ATTRIBUTE macro (diff) | |
download | linux-b3a428b4b18d495a06f39515568850f8db4c98ea.tar.xz linux-b3a428b4b18d495a06f39515568850f8db4c98ea.zip |
MIPS: Enable IOREMAP_PROT config option for MIPS cpus
Allows the users of ptrace to access memory mapped by the ptraced process
using the same cache coherency attributes as the original process.
For example while using gdb with ioremap_prot() incorporated, both gdb and
the process being traced will have same cache coherency attributes.
Signed-off-by: Hassan Naveed <hnaveed@wavecomp.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20955/
Cc: <linux-mips@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/page.h')
-rw-r--r-- | arch/mips/include/asm/page.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h index e8cc328fce2d..6b31c93b5eaa 100644 --- a/arch/mips/include/asm/page.h +++ b/arch/mips/include/asm/page.h @@ -154,6 +154,7 @@ typedef struct { unsigned long pgd; } pgd_t; typedef struct { unsigned long pgprot; } pgprot_t; #define pgprot_val(x) ((x).pgprot) #define __pgprot(x) ((pgprot_t) { (x) } ) +#define pte_pgprot(x) __pgprot(pte_val(x) & ~_PFN_MASK) /* * On R4000-style MMUs where a TLB entry is mapping a adjacent even / odd |