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_MODE values



details:   https://anonhg.NetBSD.org/src/rev/0467d8b5bb07
branches:  trunk
changeset: 941962:0467d8b5bb07
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Nov 02 08:37:59 2020 +0000

description:
Add SATP_MODE values

diffstat:

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

diffs (23 lines):

diff -r 4e4cb76e2aec -r 0467d8b5bb07 sys/arch/riscv/include/sysreg.h
--- a/sys/arch/riscv/include/sysreg.h   Mon Nov 02 08:36:54 2020 +0000
+++ b/sys/arch/riscv/include/sysreg.h   Mon Nov 02 08:37:59 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysreg.h,v 1.7 2020/11/02 08:36:54 skrll Exp $ */
+/* $NetBSD: sysreg.h,v 1.8 2020/11/02 08:37:59 skrll Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -198,10 +198,13 @@
 
 #ifdef _LP64
 #define SATP_MODE              __BITS(63,60)
+#define  SATP_MODE_SV39                8
+#define  SATP_MODE_SV48                9
 #define SATP_ASID              __BITS(59,44)
 #define SATP_PPN               __BITS(43,0)
 #else
 #define SATP_MODE              __BIT(31)
+#define  SATP_MODE_SV32                1
 #define SATP_ASID              __BITS(30,22)
 #define SATP_PPN               __BITS(21,0)
 #endif



Home | Main Index | Thread Index | Old Index