Module Name: src Committed By: skrll Date: Mon May 8 08:07:36 UTC 2023
Modified Files: src/sys/arch/riscv/include: pmap.h Log Message: Remove some #if 0'ed code To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/riscv/include/pmap.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/riscv/include/pmap.h diff -u src/sys/arch/riscv/include/pmap.h:1.16 src/sys/arch/riscv/include/pmap.h:1.17 --- src/sys/arch/riscv/include/pmap.h:1.16 Mon May 8 07:56:08 2023 +++ src/sys/arch/riscv/include/pmap.h Mon May 8 08:07:36 2023 @@ -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. */