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 Remove some #if 0'ed code



details:   https://anonhg.NetBSD.org/src/rev/c2b77ef29bb3
branches:  trunk
changeset: 374617:c2b77ef29bb3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon May 08 08:07:36 2023 +0000

description:
Remove some #if 0'ed code

diffstat:

 sys/arch/riscv/include/pmap.h |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (25 lines):

diff -r 7e54d25d5832 -r c2b77ef29bb3 sys/arch/riscv/include/pmap.h
--- a/sys/arch/riscv/include/pmap.h     Mon May 08 07:56:08 2023 +0000
+++ b/sys/arch/riscv/include/pmap.h     Mon May 08 08:07:36 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.16 2023/05/08 07:56:08 skrll Exp $ */
+/* $NetBSD: pmap.h,v 1.17 2023/05/08 08:07:36 skrll Exp $ */
 
 /*
  * Copyright (c) 2014, 2019, 2021 The NetBSD Foundation, Inc.
@@ -147,15 +147,9 @@ vsize_t    pmap_kenter_range(vaddr_t, paddr
 #ifdef _LP64
 extern vaddr_t pmap_direct_base;
 extern vaddr_t pmap_direct_end;
-#if 0  /* XXXSB is pmap_direct_base not initialised correctly somehow?  didn't check */
-#define        PMAP_DIRECT_MAP(pa)     (pmap_direct_base + (pa))
-#define        PMAP_DIRECT_UNMAP(va)   ((paddr_t)(va) - pmap_direct_base)
-#else
 #define        PMAP_DIRECT_MAP(pa)     RISCV_PA_TO_KVA(pa)
 #define        PMAP_DIRECT_UNMAP(va)   RISCV_KVA_TO_PA(va)
 
-#endif
-
 /*
  * Other hooks for the pool allocator.
  */



Home | Main Index | Thread Index | Old Index