Module Name:    src
Committed By:   thorpej
Date:           Wed Apr 24 02:27:33 UTC 2024

Modified Files:
        src/sys/dev/vme: vme.c

Log Message:
_vme_space_get(): Use VM_BESTFIT.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/vme/vme.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/vme/vme.c
diff -u src/sys/dev/vme/vme.c:1.30 src/sys/dev/vme/vme.c:1.31
--- src/sys/dev/vme/vme.c:1.30	Mon Dec  4 01:49:29 2023
+++ src/sys/dev/vme/vme.c	Wed Apr 24 02:27:33 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: vme.c,v 1.30 2023/12/04 01:49:29 thorpej Exp $ */
+/* $NetBSD: vme.c,v 1.31 2024/04/24 02:27:33 thorpej Exp $ */
 
 /*
  * Copyright (c) 1999
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.30 2023/12/04 01:49:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vme.c,v 1.31 2024/04/24 02:27:33 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -336,7 +336,7 @@ _vme_space_get(struct vmebus_softc *sc, 
 			  0,			/* nocross */
 			  VMEM_ADDR_MIN,	/* minaddr */
 			  VMEM_ADDR_MAX,	/* maxaddr */
-			  VM_NOSLEEP,
+			  VM_BESTFIT | VM_NOSLEEP,
 			  &help);
 	if (!res)
 		*addr = help;

Reply via email to