]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
xen/riscv: Introduce asm/page-bits.h
authorAlistair Francis <alistair.francis@wdc.com>
Wed, 28 Dec 2022 05:20:18 +0000 (15:20 +1000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 Dec 2022 18:32:35 +0000 (18:32 +0000)
Define PADDR_BITS and PAGE_SHIFT for the RISC-V 64-bit architecture.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/riscv/include/asm/page-bits.h [new file with mode: 0644]

diff --git a/xen/arch/riscv/include/asm/page-bits.h b/xen/arch/riscv/include/asm/page-bits.h
new file mode 100644 (file)
index 0000000..1801820
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef __RISCV_PAGE_BITS_H__
+#define __RISCV_PAGE_BITS_H__
+
+#define PAGE_SHIFT              12 /* 4 KiB Pages */
+#define PADDR_BITS              56 /* 44-bit PPN */
+
+#endif /* __RISCV_PAGE_BITS_H__ */