summaryrefslogtreecommitdiff
path: root/emulators/vmware3
diff options
context:
space:
mode:
authorMike Silbersack <silby@FreeBSD.org>2004-01-21 22:36:50 +0000
committerMike Silbersack <silby@FreeBSD.org>2004-01-21 22:36:50 +0000
commit9adc302b40dd36b5b76b20494c91ec207f3d6d5b (patch)
treea974f899b8389d96dc155eb5834776177f342ce3 /emulators/vmware3
parent- Nuke useless empty file (diff)
Update the kernel module to use contigmalloc instead of the now obsolete
vm_page_alloc_contig.
Diffstat (limited to 'emulators/vmware3')
-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;