Module Name: src Committed By: skrll Date: Sun Oct 23 07:02:27 UTC 2022
Modified Files: src/sys/arch/aarch64/aarch64: pmap.c Log Message: Only define the EFI variable if EFI_RUNTIME To generate a diff of this commit: cvs rdiff -u -r1.141 -r1.142 src/sys/arch/aarch64/aarch64/pmap.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/pmap.c diff -u src/sys/arch/aarch64/aarch64/pmap.c:1.141 src/sys/arch/aarch64/aarch64/pmap.c:1.142 --- src/sys/arch/aarch64/aarch64/pmap.c:1.141 Thu Oct 20 06:47:29 2022 +++ src/sys/arch/aarch64/aarch64/pmap.c Sun Oct 23 07:02:26 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.141 2022/10/20 06:47:29 skrll Exp $ */ +/* $NetBSD: pmap.c,v 1.142 2022/10/23 07:02:26 skrll Exp $ */ /* * Copyright (c) 2017 Ryo Shimizu <r...@nerv.org> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.141 2022/10/20 06:47:29 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.142 2022/10/23 07:02:26 skrll Exp $"); #include "opt_arm_debug.h" #include "opt_cpuoptions.h" @@ -199,15 +199,18 @@ static int _pmap_get_pdp(struct pmap *, struct vm_page **); static struct pmap kernel_pmap __cacheline_aligned; -static struct pmap efirt_pmap __cacheline_aligned; struct pmap * const kernel_pmap_ptr = &kernel_pmap; +#if defined(EFI_RUNTIME) +static struct pmap efirt_pmap __cacheline_aligned; + pmap_t pmap_efirt(void) { return &efirt_pmap; } +#endif static vaddr_t pmap_maxkvaddr;