summaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/page.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2013-01-22 16:48:45 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-02-15 23:16:11 +0530
commit4368902bb90f0e208387f336c3fce0e6b2a110fc (patch)
tree70d3927c8cd38e32a969ea340ec370ebeb16f30c /arch/arc/include/asm/page.h
parent8c2f4a8dd0e0fc9dcaf14c768544039eddfa7375 (diff)
downloadblackbird-obmc-linux-4368902bb90f0e208387f336c3fce0e6b2a110fc.tar.gz
blackbird-obmc-linux-4368902bb90f0e208387f336c3fce0e6b2a110fc.zip
ARC: Add support for ioremap_prot API
Implement ioremap_prot() to allow mapping IO memory with variable protection via TLB. Implementing this allows the /dev/mem driver to use its generic access() VMA callback, which in turn allows ptrace to examine data in memory mapped regions mapped via /dev/mem, such as Arc DCCM. The end result is that it is possible to examine values of variables placed into DCCM in user space programs via GDB. CC: Alexey Brodkin <Alexey.Brodkin@synopsys.com> CC: Noam Camus <noamc@ezchip.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/asm/page.h')
-rw-r--r--arch/arc/include/asm/page.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arc/include/asm/page.h b/arch/arc/include/asm/page.h
index dfe1f8a95f1d..bdf546104551 100644
--- a/arch/arc/include/asm/page.h
+++ b/arch/arc/include/asm/page.h
@@ -48,6 +48,8 @@ typedef unsigned long pgtable_t;
#define __pgd(x) ((pgd_t) { (x) })
#define __pgprot(x) ((pgprot_t) { (x) })
+#define pte_pgprot(x) __pgprot(pte_val(x))
+
#else /* !STRICT_MM_TYPECHECKS */
typedef unsigned long pte_t;
@@ -60,6 +62,7 @@ typedef unsigned long pgtable_t;
#define pgprot_val(x) (x)
#define __pte(x) (x)
#define __pgprot(x) (x)
+#define pte_pgprot(x) (x)
#endif
OpenPOWER on IntegriCloud