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 G/C pte_index
details: https://anonhg.NetBSD.org/src/rev/c48ea5ee2864
branches: trunk
changeset: 374405:c48ea5ee2864
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Apr 22 10:03:53 2023 +0000
description:
G/C pte_index
diffstat:
sys/arch/riscv/include/pte.h | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diffs (21 lines):
diff -r 34624f437ec4 -r c48ea5ee2864 sys/arch/riscv/include/pte.h
--- a/sys/arch/riscv/include/pte.h Sat Apr 22 10:00:24 2023 +0000
+++ b/sys/arch/riscv/include/pte.h Sat Apr 22 10:03:53 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pte.h,v 1.11 2022/11/12 07:34:18 skrll Exp $ */
+/* $NetBSD: pte.h,v 1.12 2023/04/22 10:03:53 skrll Exp $ */
/*
* Copyright (c) 2014, 2019, 2021 The NetBSD Foundation, Inc.
@@ -104,11 +104,6 @@ typedef uint32_t pd_entry_t;
#define pl1_i(va) (((va) >> L1_SHIFT) & Ln_ADDR_MASK)
#define pl0_i(va) (((va) >> L0_SHIFT) & Ln_ADDR_MASK)
-static inline const size_t
-pte_index(vaddr_t va)
-{
- return ((va >> PGSHIFT) & (NPTEPG - 1));
-}
static inline bool
pte_valid_p(pt_entry_t pte)
Home |
Main Index |
Thread Index |
Old Index