Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Don't call extent_free() in memio_u...
details: https://anonhg.NetBSD.org/src/rev/a46bb5fcbc8a
branches: trunk
changeset: 779997:a46bb5fcbc8a
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Thu Jul 05 03:02:53 2012 +0000
description:
Don't call extent_free() in memio_unmap(), if not call extent_alloc() with
defined PPC_IBM4XX and extent_flags.
diffstat:
sys/arch/powerpc/powerpc/bus_space.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 07fd4e26016c -r a46bb5fcbc8a sys/arch/powerpc/powerpc/bus_space.c
--- a/sys/arch/powerpc/powerpc/bus_space.c Thu Jul 05 02:56:40 2012 +0000
+++ b/sys/arch/powerpc/powerpc/bus_space.c Thu Jul 05 03:02:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.32 2012/02/01 09:54:03 matt Exp $ */
+/* $NetBSD: bus_space.c,v 1.33 2012/07/05 03:02:53 kiyohara Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.32 2012/02/01 09:54:03 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.33 2012/07/05 03:02:53 kiyohara Exp $");
#define _POWERPC_BUS_SPACE_PRIVATE
@@ -679,6 +679,9 @@
bpa = pa - t->pbs_offset;
if (t->pbs_extent != NULL
+#ifdef PPC_IBM4XX
+ && extent_flags
+#endif
&& extent_free(t->pbs_extent, bpa, size,
EX_NOWAIT | extent_flags)) {
printf("memio_unmap: %s 0x%lx, size 0x%lx\n",
Home |
Main Index |
Thread Index |
Old Index