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 Only define the EFI variable if EFI...
details: https://anonhg.NetBSD.org/src/rev/f5d35dcdeec7
branches: trunk
changeset: 371974:f5d35dcdeec7
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Oct 23 07:02:26 2022 +0000
description:
Only define the EFI variable if EFI_RUNTIME
diffstat:
sys/arch/aarch64/aarch64/pmap.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r d3fb7e33d2e5 -r f5d35dcdeec7 sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c Sun Oct 23 06:37:15 2022 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c Sun Oct 23 07:02:26 2022 +0000
@@ -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 <ryo%nerv.org@localhost>
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index