diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-17 17:54:06 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-06-17 17:54:06 +0000 |
commit | 893a245673adfe672306cc08d7a95aac91629b26 (patch) | |
tree | b26120d4ccda0339ae7e2f109d08fcf22cf4ef82 /sys/arch | |
parent | 6bc1a596cf8f570dc291893a5c9e4cb63fcc9275 (diff) |
Explicitly unmap DMA memory using pmap_kremove(9).
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc64/powerpc64/bus_dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc64/powerpc64/bus_dma.c b/sys/arch/powerpc64/powerpc64/bus_dma.c index 55b162eb368..cd40bd55d27 100644 --- a/sys/arch/powerpc64/powerpc64/bus_dma.c +++ b/sys/arch/powerpc64/powerpc64/bus_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bus_dma.c,v 1.1 2020/06/08 18:44:32 kettenis Exp $ */ +/* $OpenBSD: bus_dma.c,v 1.2 2020/06/17 17:54:05 kettenis Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -457,6 +457,7 @@ _dmamem_map(bus_dma_tag_t t, bus_dma_segment_t *segs, int nsegs, size_t size, void _dmamem_unmap(bus_dma_tag_t t, caddr_t kva, size_t size) { + pmap_kremove((vaddr_t)kva, size); km_free(kva, round_page(size), &kv_any, &kp_none); } |