diff options
| author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2013-05-31 15:22:25 +0000 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2019-05-03 18:34:14 +0200 |
| commit | 7d41fca261bff13e139fe0f5e141908d87b3962a (patch) | |
| tree | 1a026150ebafdfda62608371c9daf4892e9752dc /arch/arm64 | |
| parent | adad489b52ea99d521312dad5034c945729361e9 (diff) | |
arm64/xen: implement ioremap_cached on arm64
Change-Id: I567349ba54959b45e817e8ebacbb8babca1ca453
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Git-Repo: git://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
Git-commit: 22d4102f778df9cab47e871b8de3400f6e685378
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Diffstat (limited to 'arch/arm64')
| -rw-r--r-- | arch/arm64/include/asm/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index e0c0b1f1f..86197042e 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -230,10 +230,12 @@ extern void __iounmap(volatile void __iomem *addr); #define PROT_DEFAULT (PTE_TYPE_PAGE | PTE_AF | PTE_DIRTY) #define PROT_DEVICE_nGnRE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_ATTRINDX(MT_DEVICE_nGnRE)) #define PROT_NORMAL_NC (PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL_NC)) +#define PROT_NORMAL (PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL)) #define ioremap(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) #define ioremap_nocache(addr, size) __ioremap((addr), (size), __pgprot(PROT_DEVICE_nGnRE)) #define ioremap_wc(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL_NC)) +#define ioremap_cached(addr, size) __ioremap((addr), (size), __pgprot(PROT_NORMAL)) #define iounmap __iounmap #define PROT_SECT_DEFAULT (PMD_TYPE_SECT | PMD_SECT_AF) |
