Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 kgdb_acc: use mutex since pm_lock w...
details: https://anonhg.NetBSD.org/src/rev/fe5c2d319b0a
branches: trunk
changeset: 765261:fe5c2d319b0a
user: rmind <rmind%NetBSD.org@localhost>
date: Mon May 23 18:38:51 2011 +0000
description:
kgdb_acc: use mutex since pm_lock was converted to it.
diffstat:
sys/arch/sparc64/sparc64/kgdb_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r ad5e9a74d571 -r fe5c2d319b0a sys/arch/sparc64/sparc64/kgdb_machdep.c
--- a/sys/arch/sparc64/sparc64/kgdb_machdep.c Mon May 23 17:44:41 2011 +0000
+++ b/sys/arch/sparc64/sparc64/kgdb_machdep.c Mon May 23 18:38:51 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kgdb_machdep.c,v 1.14 2009/03/18 10:22:37 cegger Exp $ */
+/* $NetBSD: kgdb_machdep.c,v 1.15 2011/05/23 18:38:51 rmind Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -121,7 +121,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.14 2009/03/18 10:22:37 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kgdb_machdep.c,v 1.15 2011/05/23 18:38:51 rmind Exp $");
#include "opt_kgdb.h"
#include "opt_multiprocessor.h"
@@ -385,15 +385,15 @@
eva = round_page(va + len);
va = trunc_page(va);
- simple_lock(&pm->pm_lock);
+ mutex_enter(&pm->pm_lock);
for (; va < eva; va += PAGE_SIZE) {
data = pseg_get(pm, va);
if ((data & TLB_V) == 0) {
- simple_unlock(&pm->pm_lock);
+ mutex_exit(&pm->pm_lock);
return 0;
}
}
- simple_unlock(&pm->pm_lock);
+ mutex_exit(&pm->pm_lock);
return (1);
}
Home |
Main Index |
Thread Index |
Old Index