Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/yamt-uio_vmspace]: src/sys/arch/vax/vax actually adapt _bus_dmamap_load_...
details: https://anonhg.NetBSD.org/src/rev/64a29674fcd9
branches: yamt-uio_vmspace
changeset: 586743:64a29674fcd9
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Feb 18 23:44:27 2006 +0000
description:
actually adapt _bus_dmamap_load_buffer.
diffstat:
sys/arch/vax/vax/bus_dma.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (45 lines):
diff -r c1f66be7f1ff -r 64a29674fcd9 sys/arch/vax/vax/bus_dma.c
--- a/sys/arch/vax/vax/bus_dma.c Sat Feb 18 23:43:25 2006 +0000
+++ b/sys/arch/vax/vax/bus_dma.c Sat Feb 18 23:44:27 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.25.2.2 2006/02/18 23:43:25 yamt Exp $ */
+/* $NetBSD: bus_dma.c,v 1.25.2.3 2006/02/18 23:44:27 yamt Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.25.2.2 2006/02/18 23:43:25 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.25.2.3 2006/02/18 23:44:27 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -564,12 +564,12 @@
* first indicates if this is the first invocation of this function.
*/
int
-_bus_dmamap_load_buffer(t, map, buf, buflen, p, flags, lastaddrp, segp, first)
+_bus_dmamap_load_buffer(t, map, buf, buflen, vm, flags, lastaddrp, segp, first)
bus_dma_tag_t t;
bus_dmamap_t map;
void *buf;
bus_size_t buflen;
- struct proc *p;
+ struct vmspace *vm;
int flags;
vaddr_t *lastaddrp;
int *segp;
@@ -586,10 +586,7 @@
buf, buflen, flags, first);
#endif /* DEBUG_DMA */
- if (p != NULL)
- pmap = p->p_vmspace->vm_map.pmap;
- else
- pmap = pmap_kernel();
+ pmap = vm_map_pmap(&vm->vm_map);
lastaddr = *lastaddrp;
bmask = ~(map->_dm_boundary - 1);
Home |
Main Index |
Thread Index |
Old Index