summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_glue.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* more sync to netbsd. some bugfixes in uvm_km_kmemalloc, lots of fixes in uvm_loan.art2001-11-281-3/+2
|
* Sync in more uvm changes from NetBSD.art2001-11-281-11/+9
| | | | | This time we're getting rid of KERN_* and VM_PAGER_* error codes and use errnos instead.
* Move maxdmap and maxsmap to kern_resource.cart2001-11-101-5/+2
|
* Another sync of uvm to NetBSD. Just minor fiddling, no major changes.art2001-11-071-25/+29
|
* Let fork1, uvm_fork, and cpu_fork take a function/argument pair as argument,art2001-11-061-6/+10
| | | | | | | | | | | instead of doing fork1, cpu_set_kpc. This lets us retire cpu_set_kpc and avoid a multiprocessor race. This commit breaks vax because it doesn't look like any other arch, someone working on vax might want to look at this and try to adapt the code to be more like the rest of the world. Idea and uvm parts from NetBSD.
* More sync to NetBSD.art2001-11-061-2/+2
| | | | | | - 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.
* Move the last content from vm/ to uvm/art2001-11-061-4/+2
| | | | | | | 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
* Minor sync to NetBSD.art2001-11-051-3/+2
|
* merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okmickey2001-09-191-2/+1
|
* Various random fixes from NetBSD.art2001-08-111-32/+7
| | | | Including support for zeroing pages in the idle loop (not enabled yet).
* Add a new type voff_t (right now it's typedefed as off_t) used for offsetsart2001-08-061-3/+3
| | | | | | | | into objects. Gives the possibilty to mmap beyond the size of vaddr_t. From NetBSD.
* Change the pmap_enter interface to merge access_type and the wired booleanart2001-07-251-3/+3
| | | | | | | | | | | | | and arbitrary flags into one argument. One new flag is PMAP_CANFAIL that tells pmap_enter that it can fail if there are not enough resources to satisfy the request. If this flag is not passed, pmap_enter should panic as it should have done before this change (XXX - many pmaps are still not doing that). Only i386 and alpha implement CANFAIL for now. Includes uvm updates from NetBSD.
* Sync with NetBSD 19990911 (just before PMAP_NEW was required)smart2001-06-231-3/+28
| | | | | | | | | | - thread_sleep_msg() -> uvm_sleep() - initialize reference count lock in uvm_anon_{init,add}() - add uao_flush() - replace boolean 'islocked' with 'lockflags' - in uvm_fault() change FALSE to TRUE to in 'wide' fault handling - get rid of uvm_km_get() - various bug fixes
* Change the paddr_t pmap_extract(struct pmap *, vaddr_t) interface toart2001-06-081-5/+4
| | | | | boolean_t pmap_extract(struct pmap *, vaddr_t, paddr_t *). Matches NetBSD. Tested by various people on various platforms.
* Few fixes from NetBSD.art2001-05-071-7/+22
| | | | | | - make sure that vsunlock doesn't unwire mlocked memory. - fix locking in uvm_useracc. - Return the error uvm_fault_wire in uvm_vslock (will be used soon).
* PMAP_NEW and UVM are no longer optional on i386.art2001-05-051-12/+1
|
* Remove the (vaddr_t) casts inside the round_page and trunc_page macros.art2001-05-051-10/+10
| | | | | | We might want to use them on types that are bigger than vaddr_t. Fix all callers that pass pointers without casts.
* It is unnecessary to wrap uvm_wait() in splhigh(). Also, set p_addr to NULLaaron2001-04-031-3/+2
| | | | when we free it; art@ ok
* On popular demand, the Linux-compatibility clone(2) implementation basedniklas2001-04-021-6/+3
| | | | | on NetBSD's code, as well as some faked Posix RT extensions by me. This makes at least simple linuxthreads tests work.
* $OpenBSD$niklas2001-01-291-0/+1
|
* Convert bzero to memset(X, 0..) and bcopy to memcpy.art2000-09-071-2/+2
| | | | | This is to match (make diffs smaller) the code in NetBSD. new gcc inlines those functions, so this could also be a performance win.
* Bring in some new UVM code from NetBSD (not current).art2000-03-161-7/+13
| | | | | | | | | - Introduce a new type of map that are interrupt safe and never allow faults in them. mb_map and kmem_map are made intrsafe. - Add "access protection" to uvm_vslock (to be passed down to uvm_fault and later to pmap_enter). - madvise(2) now works. - various cleanups.
* Prepare for new pmapniklas2000-03-011-1/+1
|
* Change the pmap_enter api to pass down an argument that indicatesart1999-09-031-1/+1
| | | | | | | | | | the access type that caused this mapping. This is to simplify pmaps with mod/ref emulation (none for the moment) and in some cases speed up pmap_is_{referenced,modified}. At the same time, clean up some mappings that had too high protection. XXX - the access type is incorrect in old vm, it's only used by uvm and MD code. The actual use of this in pmap_enter implementations is not in this commit.
* sync with NetBSD from 1999.05.24 (there is a reason for this date)art1999-08-231-8/+3
| | | | | Mostly cleanups, but also a few improvements to pagedaemon for better handling of low memory and/or low swap conditions.
* New cpu_fork API to take a stack in which you point the child's stackpointerniklas1999-08-171-4/+6
| | | | | | to, at the bottom or the top, depending on your architecture's stack growth direction. This is in preparation for Linux' clone(2) emulation. port maintainers, please check that I did the work right.
* add OpenBSD tagsart1999-02-261-0/+1
|
* Import of uvm from NetBSD. Some local changes, some code disabledart1999-02-261-0/+605