We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d6d380 commit 8f76193Copy full SHA for 8f76193
arch/riscv/include/asm/io.h
@@ -28,6 +28,10 @@
28
#ifdef CONFIG_MMU
29
#define IO_SPACE_LIMIT (PCI_IO_SIZE - 1)
30
#define PCI_IOBASE ((void __iomem *)PCI_IO_START)
31
+
32
+#define ioremap_wc(addr, size) \
33
+ ioremap_prot((addr), (size), __pgprot(_PAGE_KERNEL_NC))
34
35
#endif /* CONFIG_MMU */
36
37
/*
arch/riscv/include/asm/pgtable.h
@@ -203,6 +203,7 @@ extern struct pt_alloc_ops pt_ops __meminitdata;
203
204
#define PAGE_TABLE __pgprot(_PAGE_TABLE)
205
206
+#define _PAGE_KERNEL_NC ((_PAGE_KERNEL & ~_PAGE_MTMASK) | _PAGE_NOCACHE)
207
#define _PAGE_IOREMAP ((_PAGE_KERNEL & ~_PAGE_MTMASK) | _PAGE_IO)
208
#define PAGE_KERNEL_IO __pgprot(_PAGE_IOREMAP)
209
0 commit comments