aboutsummaryrefslogtreecommitdiffstats
path: root/emulators
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2004-01-22 06:36:50 +0800
committersilby <silby@FreeBSD.org>2004-01-22 06:36:50 +0800
commitab2ea0a4c352b6339f6fd94948b69b75b4596265 (patch)
treeca09dc258943bd4ed68202f60b4134856e02c77d /emulators
parent6d9f7c75cd54fec34d07874e06df63d7bc26f30b (diff)
downloadfreebsd-ports-gnome-ab2ea0a4c352b6339f6fd94948b69b75b4596265.tar.gz
freebsd-ports-gnome-ab2ea0a4c352b6339f6fd94948b69b75b4596265.tar.zst
freebsd-ports-gnome-ab2ea0a4c352b6339f6fd94948b69b75b4596265.zip
Update the kernel module to use contigmalloc instead of the now obsolete
vm_page_alloc_contig.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/vmware3/files/patch-aa12
1 files changed, 12 insertions, 0 deletions
diff --git a/emulators/vmware3/files/patch-aa b/emulators/vmware3/files/patch-aa
new file mode 100644
index 000000000000..77015077bcbe
--- /dev/null
+++ b/emulators/vmware3/files/patch-aa
@@ -0,0 +1,12 @@
+--- vmmon-only/freebsd/driver.c.old Wed Jan 21 16:14:24 2004
++++ vmmon-only/freebsd/driver.c Wed Jan 21 16:16:44 2004
+@@ -1328,7 +1328,8 @@
+ */
+ VMDEBUG("vmmon_alloc_low_pages: vm_page_alloc_contig: sz %lu hi %u\n",
+ numPages * PAGE_SIZE, high);
+- va = vm_page_alloc_contig(numPages * PAGE_SIZE, 0, high, PAGE_SIZE);
++ va = (vm_offset_t)contigmalloc(numPages * PAGE_SIZE, M_DEVBUF, M_NOWAIT,
++ 0, high, PAGE_SIZE, 0);
+ if (!va) {
+ VMDEBUG("vmmon_alloc_low_pages: vm_page_alloc_contig failed\n");
+ goto bad;