Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/aarch64/aarch64 fix build error without options DDB.



details:   https://anonhg.NetBSD.org/src/rev/ff05e4345487
branches:  trunk
changeset: 953452:ff05e4345487
user:      ryo <ryo%NetBSD.org@localhost>
date:      Tue Mar 09 16:40:59 2021 +0000

description:
fix build error without options DDB.

kvtopte() is referenced from arm/acpi/acpi_machdep.c

diffstat:

 sys/arch/aarch64/aarch64/pmap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r b8636bd9579f -r ff05e4345487 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Tue Mar 09 16:39:18 2021 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Tue Mar 09 16:40:59 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.102 2021/02/13 18:13:53 ryo Exp $   */
+/*     $NetBSD: pmap.c,v 1.103 2021/03/09 16:40:59 ryo Exp $   */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.102 2021/02/13 18:13:53 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.103 2021/03/09 16:40:59 ryo Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -2632,8 +2632,6 @@
        return (pp->pp_pv.pv_va & VM_PROT_READ);
 }
 
-#ifdef DDB
-
 /* get pointer to kernel segment L2 or L3 table entry */
 pt_entry_t *
 kvtopte(vaddr_t va)
@@ -2643,6 +2641,8 @@
        return _pmap_pte_lookup_bs(pmap_kernel(), va, NULL);
 }
 
+#ifdef DDB
+
 /* change attribute of kernel segment */
 pt_entry_t
 pmap_kvattr(vaddr_t va, vm_prot_t prot)



Home | Main Index | Thread Index | Old Index