xen: define PADDR_BITS for riscv
PATCH 1/1 xen: define PADDR_BITS for riscv
From: Alistair Francis <[email protected]>
Define PADDR_BITS and PAGE_SHIFT for the RISC-V 64-bit architecture.
Signed-off-by Alistair Francis <[email protected]>
--- xen/arch/riscv/include/asm/page-bits.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 xen/arch/riscv/include/asm/page-bits.h
xen/arch/riscv/include/asm/page-bits.h new file +7 -0
@@ -0,0 +1,7 @@ +#ifndef __RISCV_PAGE_SHIFT_H__ +#define __RISCV_PAGE_SHIFT_H__ + +#define PAGE_SHIFT 12/* 4 KiB Pages */ +#define PADDR_BITS 56/* 44-bit PPN */ + +#endif /* __RISCV_PAGE_SHIFT_H__ */
Signature · 1 line
2.38.1
Quoted 5 lines · Alistair Francis
From: Alistair Francis <[email protected]>
Define
PADDR_BITSandPAGE_SHIFTfor the RISC-V 64-bit architecture.Signed-off-by Alistair Francis <[email protected]>
Thanks. I've committed this with a tweak to the subject (its not just PADDR_BITS your adding), and a tweak to the include guards (SHIFT->BITS to match the name of the file).
~Andrew
Quoted 18 lines
--- xen/arch/riscv/include/asm/page-bits.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 xen/arch/riscv/include/asm/page-bits.hxen/arch/riscv/include/asm/page-bits.h new file +7
-0@@ -0,0 +1,7 @@ +#ifndef __RISCV_PAGE_SHIFT_H__ +#define __RISCV_PAGE_SHIFT_H__ + +#define PAGE_SHIFT 12/* 4 KiB Pages */ +#define PADDR_BITS 56/* 44-bit PPN */ + +#endif /* __RISCV_PAGE_SHIFT_H__ */