Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm Appease KDASSERT / LOCKDEBUG.
details: https://anonhg.NetBSD.org/src/rev/d31ae0fba0c3
branches: trunk
changeset: 372666:d31ae0fba0c3
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Dec 18 12:02:46 2022 +0000
description:
Appease KDASSERT / LOCKDEBUG.
Tested by mlelstv.
diffstat:
sys/arch/arm/arm/efi_machdep.c | 8 +++++---
sys/arch/arm/arm32/pmap.c | 6 +++---
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 85486709e957 -r d31ae0fba0c3 sys/arch/arm/arm/efi_machdep.c
--- a/sys/arch/arm/arm/efi_machdep.c Sun Dec 18 07:53:30 2022 +0000
+++ b/sys/arch/arm/arm/efi_machdep.c Sun Dec 18 12:02:46 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi_machdep.c,v 1.2 2022/05/03 20:12:27 skrll Exp $ */
+/* $NetBSD: efi_machdep.c,v 1.3 2022/12/18 12:02:46 skrll Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.2 2022/05/03 20:12:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi_machdep.c,v 1.3 2022/12/18 12:02:46 skrll Exp $");
#include <sys/param.h>
#include <uvm/uvm_extern.h>
@@ -111,13 +111,15 @@
case ARM_EFIRT_MEM_CODE:
/* need write permission because fw devs */
prot = VM_PROT_READ | VM_PROT_WRITE | VM_PROT_EXECUTE;
+ flags = prot;
break;
case ARM_EFIRT_MEM_DATA:
prot = VM_PROT_READ | VM_PROT_WRITE;
+ flags = prot;
break;
case ARM_EFIRT_MEM_MMIO:
prot = VM_PROT_READ | VM_PROT_WRITE;
- flags = PMAP_DEV;
+ flags = prot | PMAP_DEV;
break;
default:
panic("%s: unsupported type %d", __func__, type);
diff -r 85486709e957 -r d31ae0fba0c3 sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Dec 18 07:53:30 2022 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Dec 18 12:02:46 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.437 2022/05/03 20:12:28 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.438 2022/12/18 12:02:47 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -193,7 +193,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.437 2022/05/03 20:12:28 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.438 2022/12/18 12:02:47 skrll Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -6379,7 +6379,7 @@
kcpuset_create(&efipm->pm_active, true);
kcpuset_create(&efipm->pm_onproc, true);
#endif
- mutex_init(&efipm->pm_lock, MUTEX_DEFAULT, IPL_VM);
+ mutex_init(&efipm->pm_lock, MUTEX_DEFAULT, IPL_NONE);
#endif
VPRINTF("locks ");
Home |
Main Index |
Thread Index |
Old Index