summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_unix.c
AgeCommit message (Collapse)Author
2007-04-11The return value of uvm_grow() (and previously, grow()) has not been usedMiod Vallat
in 15 years, make it a void function. ok art@
2005-07-26 - Make a UVM_OBJ_IS_DEVICE macro.Artur Grabowski
- Use it to skip device mappings while dumping core. - Ignore EFAULT errors while dumping core since they can happen even for valid mappings. Just skip that part of the core file and let it get automagically zero-filled. This fixes the broken X core dumps that people have been seeing and also fixes some other potential problems that could prevent core dumps (mmaps beyond EOF, etc.). tedu@ ok
2003-03-04do not treat map entries above the stack as stack; only for the grow-upsMichael Shalayeff
2003-02-18fix the way stack is written into the core file on the upward growing stack ↵Michael Shalayeff
machines. the other case is not affected. miod@ deraadt@ ok
2002-12-20user-defined stacks check is the same for grownups as for growndownsMichael Shalayeff
2002-12-19simplify stack grownups (growndowns are not touched)Michael Shalayeff
2002-10-29Since memory deallocation can't fail, remove the error return fromArtur Grabowski
uvm_unmap, uvm_deallocate and a few other functions. Simplifies some code and reduces diff to the UBC branch.
2002-08-23map the heap without PROT_EXEC.Artur Grabowski
deraadt@ ok.
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
2001-11-28Sync in more uvm from NetBSD. Mostly just cosmetic stuff.Artur Grabowski
Contains also support for page coloring.
2001-11-28Sync in more uvm changes from NetBSD.Artur Grabowski
This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
2001-11-07Another sync of uvm to NetBSD. Just minor fiddling, no major changes.Artur Grabowski
2001-11-07Add an alignment argument to uvm_map that specifies an alignment hintArtur Grabowski
for the virtual address.
2001-11-06More sync to NetBSD.Artur Grabowski
- Use malloc/free instead of MALLOC/FREE for variable sized allocations. - Move the memory inheritance code to sys/mman.h and rename from VM_* to MAP_* - various cleanups and simplifications.
2001-11-06Move the last content from vm/ to uvm/Artur Grabowski
The only thing left in vm/ are just dumb wrappers. vm/vm.h includes uvm/uvm_extern.h vm/pmap.h includes uvm/uvm_pmap.h vm/vm_page.h includes uvm/uvm_page.h
2001-08-11Various random fixes from NetBSD.Artur Grabowski
Including support for zeroing pages in the idle loop (not enabled yet).
2001-08-06Add a new type voff_t (right now it's typedefed as off_t) used for offsetsArtur Grabowski
into objects. Gives the possibilty to mmap beyond the size of vaddr_t. From NetBSD.
2001-07-25Some updates to UVM from NetBSD. Nothing really critical, just a sync.Artur Grabowski
2001-05-05Remove the (vaddr_t) casts inside the round_page and trunc_page macros.Artur Grabowski
We might want to use them on types that are bigger than vaddr_t. Fix all callers that pass pointers without casts.
2001-05-05Get rid of CLSIZE and all related stuff.Artur Grabowski
CLSIZE -> 1 CLBYTES -> PAGE_SIZE OLOFSET -> PAGE_MASK etc. At the same time some archs needed some cleaning in vmparam.h so that goes in at the same time.
2001-01-29$OpenBSD$Niklas Hallqvist
2000-07-04Fix the latest fix.Artur Grabowski
Only change vm_dsize if the allocation succeeded. From Jason Thorpe.
2000-06-30Don't cast to int when checking if we have exceeded our rlimit in sbrk.Artur Grabowski
Plus misc cleanup.
2000-03-15Fix the NetBSD id strings.Artur Grabowski
1999-08-23sync with NetBSD from 1999.05.24 (there is a reason for this date)Artur Grabowski
Mostly cleanups, but also a few improvements to pagedaemon for better handling of low memory and/or low swap conditions.
1999-07-20accomodations for backward growing stack architectures; art@ kMichael Shalayeff
1999-02-26add OpenBSD tagsArtur Grabowski
1999-02-26Import of uvm from NetBSD. Some local changes, some code disabledArtur Grabowski