diff options
| author | skrll <skrll@NetBSD.org> | 2023-04-22 10:03:53 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2023-04-22 10:03:53 +0000 |
| commit | 422db99cd0eca2fe6aedd74f964166df8ed7ec22 (patch) | |
| tree | 058733184687e5eb0f0018c07563b71179104e07 /sys | |
| parent | 8fb1e09a781df2cca0cd58ab1446fad0d12a268b (diff) | |
G/C pte_index
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/riscv/include/pte.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arch/riscv/include/pte.h b/sys/arch/riscv/include/pte.h index 4d6fa60a2bb..82547d22066 100644 --- a/sys/arch/riscv/include/pte.h +++ b/sys/arch/riscv/include/pte.h @@ -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) |
