summaryrefslogtreecommitdiff
path: root/libpager/pager-memcpy.c
AgeCommit message (Collapse)Author
2014-11-10Avoid hitting VM_MAX_ADDRESSSamuel Thibault
* libpager/pager-memcpy.c (pager_memcpy): Reset address passed to vm_map on each loop, to avoid potentially monotonically increasing up to VM_MAX_ADDRESS.
2014-11-09Deal with odd kernel behaviorSamuel Thibault
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.
2011-12-29Upgrade pager-memcpy parametersSamuel Thibault
* libpager/pager-memcpy.c (VMCOPY_BETTER_THAN_MEMCPY): Increase to 8 pages. (VMCOPY_WINDOW_DEFAULT_SIZE, MEMCPY_WINDOW_DEFAULT_SIZE): Increase to 32 pages.
2002-04-112002-04-10 Neal H Walfield,,, <neal@cs.uml.edu>Neal H. Walfield
* pager-memcpy.c (pager_memcpy): Pass not the block but the byte offset of the page in question to pager_get_error.
2002-04-102002-04-10 Neal H Walfield <neal@cs.uml.edu>Neal H. Walfield
* pager-memcpy.c (VMCOPY_BETTER_THAN_MEMCPY): New macro. (pager_memcpy): Rewritten to use vmcopy.
2001-02-262001-02-25 Roland McGrath <roland@frob.com>Roland McGrath
* pager-memcpy.c: Include <string.h> for memcpy decl.
2000-01-242000-01-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* pager-memcpy.c (pager_memcpy): Short-circuit return for zero size.
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* priv.h: Add #include <sys/mman.h> for munmap decl. * pager-memcpy.c: Likewise.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* data-return.c (_pager_do_write_request): Use munmap instead of vm_deallocate. * object-terminate.c (_pager_free_structure): Likewise. * pagemap.c (_pager_pagemap_resize): Likewise. * pager-memcpy.c (pager_memcpy): Likewise. * pager.h (pager_write_page): Doc adjustment.
1997-02-05(pager_memcpy):Miles Bader
`preempter' -> `preemptor'.
1996-04-11(pager_memcpy): fixupMichael I. Bushnell
1996-04-11Initial revisionMichael I. Bushnell