[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] xen: define PADDR_BITS for riscv


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Alistair Francis <alistair.francis@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 28 Dec 2022 15:20:18 +1000
  • Authentication-results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com
  • Cc: bobbyeshleman@xxxxxxxxx, ayankuma@xxxxxxx, Andrew.Cooper3@xxxxxxxxxx, alistair23@xxxxxxxxx, Alistair Francis <alistair.francis@xxxxxxx>
  • Delivery-date: Wed, 28 Dec 2022 05:33:25 +0000
  • Ironport-sdr: JzNqxlhlN6tR3WCOu6/EIJXGTSwIZBSSj9Na8fTilzNdl84PPhhR5MSRvXWVd+Ma+xM8/+0TZ3 biHi6dkx1Re+5Z8rDqD4QPdy/+XAzxxVHpJHoIJQAGgNB0QyOXbI+CuWteYu3UoC6erdbsO3by LvaD+rGwpKQrV+Jxyo8IGz+7fE7Ff2VN9prdUWN/z/GRQI2gXgrB6xnoEAVmGlpFR0QIxdCtGi OJLqEE5ZXKTt80VwuQWxubmAc+VrzgTP5L+in24B8sg1+DaBQMpd8b7++e1XkIuH/Q7E9TXcN1 mgs=
  • Ironport-sdr: 1JPXX0mbwmAVcAhhxc8/Sb5iyOZAvN/xD7STLfhKWpq8H1BNAmcRglGJSbI78YkbIyMB59WUa+ jRrFlsaf2Mp5NyLQ+yDxK6jiewGRDtbAUewWBtghl1BkDC/nrXz26I+aLJpbiDcplMWO+bRdtu aLBn2kK8S6/hQ7E75NyLMk1rult1kbLSi5GIBRj4kjKKh7w4iA92pJkVNie/aXXtUX2JHsxyvG sFI6iVAoMOsKdPm9qTjEHLCPCwF11S9u1NS2BKMLJeFBlt5KKNHcJxl/SK5gY8+iY3xEV0gVXX d9Y=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Wdcironportexception: Internal

From: Alistair Francis <alistair.francis@xxxxxxx>

Define PADDR_BITS and PAGE_SHIFT for the RISC-V 64-bit architecture.

Signed-off-by: Alistair Francis <alistair.francis@xxxxxxx>
---
 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

diff --git a/xen/arch/riscv/include/asm/page-bits.h 
b/xen/arch/riscv/include/asm/page-bits.h
new file mode 100644
index 0000000000..d7bd7be098
--- /dev/null
+++ b/xen/arch/riscv/include/asm/page-bits.h
@@ -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__ */
-- 
2.38.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.