Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Add SATP modes for bare, SV57 and SV64.



details:   https://anonhg.NetBSD.org/src/rev/ffebd4bae458
branches:  trunk
changeset: 371850:ffebd4bae458
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Oct 15 06:48:31 2022 +0000

description:
Add SATP modes for bare, SV57 and SV64.

diffstat:

 sys/arch/riscv/include/sysreg.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r d7fa3e234f58 -r ffebd4bae458 sys/arch/riscv/include/sysreg.h
--- a/sys/arch/riscv/include/sysreg.h   Sat Oct 15 06:46:41 2022 +0000
+++ b/sys/arch/riscv/include/sysreg.h   Sat Oct 15 06:48:31 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysreg.h,v 1.15 2022/10/15 06:41:43 simonb Exp $ */
+/* $NetBSD: sysreg.h,v 1.16 2022/10/15 06:48:31 simonb Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -253,12 +253,16 @@
 
 #ifdef _LP64
 #define        SATP_MODE               __BITS(63,60)
+#define         SATP_MODE_BARE         0
 #define         SATP_MODE_SV39         8
 #define         SATP_MODE_SV48         9
+#define         SATP_MODE_SV57         10
+#define         SATP_MODE_SV64         10
 #define        SATP_ASID               __BITS(59,44)
 #define        SATP_PPN                __BITS(43,0)
 #else
 #define        SATP_MODE               __BIT(31)
+#define         SATP_MODE_BARE         0
 #define         SATP_MODE_SV32         1
 #define        SATP_ASID               __BITS(30,22)
 #define        SATP_PPN                __BITS(21,0)



Home | Main Index | Thread Index | Old Index