summaryrefslogtreecommitdiff
path: root/sysutils/xentools12/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xentools12/patches/patch-aj')
-rw-r--r--sysutils/xentools12/patches/patch-aj26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/xentools12/patches/patch-aj b/sysutils/xentools12/patches/patch-aj
new file mode 100644
index 00000000000..514e8d5d4c7
--- /dev/null
+++ b/sysutils/xentools12/patches/patch-aj
@@ -0,0 +1,26 @@
+$NetBSD: patch-aj,v 1.1 2004/05/08 18:24:00 cl Exp $
+
+--- xc/lib/xc_netbsd_build.c.orig 2004-04-18 04:29:16.000000000 +0200
++++ xc/lib/xc_netbsd_build.c
+@@ -157,6 +157,10 @@ static int setup_guestos(int xc_handle,
+ if ( (vl2tab = map_pfn(pm_handle, l2tab >> PAGE_SHIFT)) == NULL )
+ goto error_out;
+ memset(vl2tab, 0, PAGE_SIZE);
++ unmap_pfn(pm_handle, vl2tab);
++ if ( (vl2tab = map_pfn_ro(pm_handle, l2tab >> PAGE_SHIFT)) == NULL )
++ goto error_out;
++ mlock(vl2tab, PAGE_SIZE);
+ vl2e = vl2tab + l2_table_offset(*virt_load_addr);
+ for ( count = 0; count < tot_pages; count++ )
+ {
+@@ -166,6 +170,10 @@ static int setup_guestos(int xc_handle,
+ if ( (vl1tab = map_pfn(pm_handle, l1tab >> PAGE_SHIFT)) == NULL )
+ goto error_out;
+ memset(vl1tab, 0, PAGE_SIZE);
++ unmap_pfn(pm_handle, vl1tab);
++ if ( (vl1tab = map_pfn_ro(pm_handle, l1tab >> PAGE_SHIFT)) == NULL )
++ goto error_out;
++ mlock(vl1tab, PAGE_SIZE);
+ alloc_index--;
+
+ vl1e = vl1tab + l1_table_offset(*virt_load_addr +