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 In pmap_devmap_bootstrap only set p...
details: https://anonhg.NetBSD.org/src/rev/b102b576794a
branches: trunk
changeset: 942114:b102b576794a
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Nov 07 08:33:50 2020 +0000
description:
In pmap_devmap_bootstrap only set pmap_devmap_bootstrap_done if there
is an entry and ALL of the entries have been done. The entry required
for EARLYCONS might not be the first/only one...
diffstat:
sys/arch/aarch64/aarch64/pmap.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r bf2178e87693 -r b102b576794a sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c Sat Nov 07 08:28:15 2020 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c Sat Nov 07 08:33:50 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.94 2020/11/01 10:58:59 jmcneill Exp $ */
+/* $NetBSD: pmap.c,v 1.95 2020/11/07 08:33:50 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.94 2020/11/01 10:58:59 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.95 2020/11/07 08:33:50 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -348,6 +348,7 @@
void
pmap_devmap_bootstrap(vaddr_t l0pt, const struct pmap_devmap *table)
{
+ bool done = false;
vaddr_t va;
int i;
@@ -375,8 +376,10 @@
table[i].pd_size,
table[i].pd_prot,
table[i].pd_flags);
+ done = true;
+ }
+ if (done)
pmap_devmap_bootstrap_done = true;
- }
}
const struct pmap_devmap *
Home |
Main Index |
Thread Index |
Old Index