summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-09 22:31:21 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-11-09 22:31:21 +0100
commit94b2c453829b3aebdaccf7d3d252136b283002b3 (patch)
tree741fc5b14a62a18f66e349b8234088f59e5c171f /libpager
parent9480792609c779516ac465ac5a038101032be77d (diff)
Deal with odd kernel behavior
Some versions of gnumach actually take address as a mapping hint, and would fail if the hint is bogus. Make sure to pass 0 for those versions. * console/pager.c (user_pager_create): Make sure to set *user to 0 before calling vm_map. * libdiskfs/disk-pager.c (diskfs_start_disk_pager): Make sure to set *image to 0 before calling vm_map. * libpager/pager-memcpy.c (pager_memcpy): Set window to 0 before calling vm_map. * tmpfs/node.c (diskfs_get_filemap): Make sure to set np->dn->u.reg.memref to 0 before calling vm_map.
Diffstat (limited to 'libpager')
-rw-r--r--libpager/pager-memcpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpager/pager-memcpy.c b/libpager/pager-memcpy.c
index f2be5585..479c06f0 100644
--- a/libpager/pager-memcpy.c
+++ b/libpager/pager-memcpy.c
@@ -45,7 +45,7 @@ pager_memcpy (struct pager *pager, memory_object_t memobj,
#define VMCOPY_WINDOW_DEFAULT_SIZE (32 * vm_page_size)
#define MEMCPY_WINDOW_DEFAULT_SIZE (32 * vm_page_size)
- vm_address_t window;
+ vm_address_t window = 0;
vm_size_t window_size;
error_t do_vm_copy (void)