Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libshmif Use VMEM_ADDR_MIN and VMEM_ADDR_MAX.
details: https://anonhg.NetBSD.org/src/rev/c2ea8b6c73a1
branches: trunk
changeset: 768712:c2ea8b6c73a1
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Aug 25 15:14:19 2011 +0000
description:
Use VMEM_ADDR_MIN and VMEM_ADDR_MAX.
diffstat:
sys/rump/net/lib/libshmif/if_shmem.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r d414f3fe1dd0 -r c2ea8b6c73a1 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c Thu Aug 25 15:12:38 2011 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c Thu Aug 25 15:14:19 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_shmem.c,v 1.41 2011/08/23 22:00:57 dyoung Exp $ */
+/* $NetBSD: if_shmem.c,v 1.42 2011/08/25 15:14:19 dyoung Exp $ */
/*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.41 2011/08/23 22:00:57 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.42 2011/08/25 15:14:19 dyoung Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -293,8 +293,8 @@
return error;
}
- unit = vmem_xalloc(shmif_units, 1, 0, 0, 0, 0, ~(vmem_addr_t)0,
- VM_INSTANTFIT | VM_SLEEP) - 1;
+ unit = vmem_xalloc(shmif_units, 1, 0, 0, 0,
+ VMEM_ADDR_MIN, VMEM_ADDR_MAX, VM_INSTANTFIT | VM_SLEEP) - 1;
if ((error = allocif(unit, &sc)) != 0) {
if (path)
Home |
Main Index |
Thread Index |
Old Index