Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpdev Free memory in unmap instead of pan...



details:   https://anonhg.NetBSD.org/src/rev/4ab46967f02a
branches:  trunk
changeset: 752559:4ab46967f02a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Mon Mar 01 13:01:16 2010 +0000

description:
Free memory in unmap instead of panicking.
(this is currently not very actively called, though, as can be seen
from the previous "implementation")

diffstat:

 sys/rump/librump/rumpdev/rumpdma.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r d0e1d7bc2779 -r 4ab46967f02a sys/rump/librump/rumpdev/rumpdma.c
--- a/sys/rump/librump/rumpdev/rumpdma.c        Mon Mar 01 11:35:58 2010 +0000
+++ b/sys/rump/librump/rumpdev/rumpdma.c        Mon Mar 01 13:01:16 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpdma.c,v 1.1 2010/02/09 18:57:03 pooka Exp $        */
+/*     $NetBSD: rumpdma.c,v 1.2 2010/03/01 13:01:16 pooka Exp $        */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -108,5 +108,5 @@
 bus_dmamem_unmap(bus_dma_tag_t a, void *kva, size_t b)
 {
 
-       panic("unimplemented %s", __func__);
+       kmem_free(kva, b);
 }



Home | Main Index | Thread Index | Old Index