Module Name:    src
Committed By:   ryo
Date:           Wed Aug  3 17:55:05 UTC 2022

Modified Files:
        src/sys/arch/aarch64/aarch64: pmapboot.c

Log Message:
fix build with options PMAPBOOT_DEBUG and options DDB


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/aarch64/aarch64/pmapboot.c

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/aarch64/aarch64/pmapboot.c
diff -u src/sys/arch/aarch64/aarch64/pmapboot.c:1.17 src/sys/arch/aarch64/aarch64/pmapboot.c:1.18
--- src/sys/arch/aarch64/aarch64/pmapboot.c:1.17	Fri Apr 30 20:07:22 2021
+++ src/sys/arch/aarch64/aarch64/pmapboot.c	Wed Aug  3 17:55:05 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmapboot.c,v 1.17 2021/04/30 20:07:22 skrll Exp $	*/
+/*	$NetBSD: pmapboot.c,v 1.18 2022/08/03 17:55:05 ryo Exp $	*/
 
 /*
  * Copyright (c) 2018 Ryo Shimizu <r...@nerv.org>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmapboot.c,v 1.17 2021/04/30 20:07:22 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmapboot.c,v 1.18 2022/08/03 17:55:05 ryo Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -43,6 +43,9 @@ __KERNEL_RCSID(0, "$NetBSD: pmapboot.c,v
 #include <arm/cpufunc.h>
 
 #include <aarch64/armreg.h>
+#ifdef DDB
+#include <aarch64/db_machdep.h>
+#endif
 #include <aarch64/machdep.h>
 #include <aarch64/pmap.h>
 #include <aarch64/pte.h>
@@ -162,7 +165,7 @@ pmapboot_pte_print(pt_entry_t pte, int l
     void (*pr)(const char *, ...) __printflike(1, 2))
 {
 #ifdef DDB
-	db_pmap_pte_print(pte, level, pr);
+	db_pte_print(pte, level, pr);
 #else
 	__USE(level);
 	pr(" %s PA=%016lx\n",

Reply via email to