summaryrefslogtreecommitdiff
path: root/sys/uvm
AgeCommit message (Collapse)Author
2001-10-26 - every new fd created by falloc() is marked as larval and should not be usedArtur Grabowski
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-09-20Avoid leaking memory if uiomove fails.Artur Grabowski
2001-09-19merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okMichael Shalayeff
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-09-05use %ll instead of %qTheo de Raadt
2001-08-31do not init swapdev_vp if it's already done elsewhere; art@ okMichael Shalayeff
2001-08-25Default to disabled zeroing of pages in the idle loop.Artur Grabowski
2001-08-24switch to the optimised AES reference code fromMarkus Friedl
http://www.esat.kuleuven.ac.be/~rijmen/rijndael/rijndael-fst-3.0.zip the same code is used by ssh, so please make sure to update usr.sbin/ssh/rijndael.c if you change this code. tested on sparc (jason) and with swap encryption (me); ok deraadt@, provos@
2001-08-12merge vm_map.h into uvm_map.h, kinda matches netbsd's approachMichael Shalayeff
2001-08-12vm_pager.h no moreMichael Shalayeff
2001-08-12vm_inherit.h no moreMichael Shalayeff
2001-08-12vm_extern.h no moreMichael Shalayeff
2001-08-12moce pglisth into uvm_pglist.hMichael Shalayeff
2001-08-12vm/vm_prot.h no moreMichael Shalayeff
2001-08-11Various random fixes from NetBSD.Artur Grabowski
Including support for zeroing pages in the idle loop (not enabled yet).
2001-08-08nuke __attribute__((__noreturn__)) when used in conjunction with __deadTodd C. Miller
2001-08-06remove vm_conf.h; art@ okMichael Shalayeff
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-08-02Sysctl for finding out how many pages there are in kmem_map.Artur Grabowski
2001-07-31Allocate page buckets from kernel_map. This should save a goodArtur Grabowski
amount of kmem_map on machines with lots of physical memory.
2001-07-31minor sync to NetBSD.Artur Grabowski
2001-07-26Add support for disabling swap devices (swapctl -d).Artur Grabowski
Improve error handling on I/O errors to swap. From NetBSD
2001-07-25Some updates to UVM from NetBSD. Nothing really critical, just a sync.Artur Grabowski
2001-07-25Change the pmap_enter interface to merge access_type and the wired booleanArtur Grabowski
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.
2001-07-19Missed one in PMAP_NEW fix.Artur Grabowski
2001-07-18Unconfuse UVM_UNLOCK_AND_WAIT. From NetBSD.Artur Grabowski
2001-07-18Correct the NetBSD tag.Artur Grabowski
2001-07-18Sync in more from NetBSD.Artur Grabowski
Original commit message: Patch from chuq for uvm r/w map oscillation bug. Fixes the XalphaNetBSD slowdown.
2001-07-18Change some annoying DIAGNOSTIC printfs to DEBUG.Artur Grabowski
From NetBSD.
2001-07-18minor sync to NetBSD, nothing changed.Artur Grabowski
2001-07-18Make uvm_wait take a const char *Artur Grabowski
2001-07-18Get rid of the PMAP_NEW option by making it mandatory for all archs.Artur Grabowski
The archs that didn't have a proper PMAP_NEW now have a dummy implementation with wrappers around the old functions.
2001-07-17i suk. needs &'s on the locks...mts
2001-07-17current netbsd's uvm_map uses a 3-parm SAVE_HINT to perform a test/swapmts
under locked conditions. we currently use a 2-parm SAVE_HINT... to meet the same functionality, we instead need to validate the hint is the one CURRENTLY in the map before substituing it, and we need to do that while the lock is retained.
2001-07-11need to save hint (verified from current netbsd uvm_map.c) -- need modmts
to allow bpf to manage shared address space.
2001-07-05Get rid of the wrapper macros around extent_alloc*1Artur Grabowski
Pass the right amount of arguments and rename them back to their right names.
2001-06-24cold is in systm nowMichael Shalayeff
2001-06-23Sync with NetBSD 19990911 (just before PMAP_NEW was required)smart
- 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
2001-06-23convert to use pool_init.Artur Grabowski
2001-06-08Change the paddr_t pmap_extract(struct pmap *, vaddr_t) interface toArtur Grabowski
boolean_t pmap_extract(struct pmap *, vaddr_t, paddr_t *). Matches NetBSD. Tested by various people on various platforms.
2001-05-10More sync to NetBSD.Artur Grabowski
The highlight is some more advices to madvise(2). o MADV_DONTNEED will deactive the pages in the given range giving a quicker reuse. o MADV_FREE will garbage-collect the pages and swap resources causing the next fault to either page in new pages from backing store (mapped vnode) or allocate new zero-fill pages (anonymous mapping).
2001-05-10Some locking protocol fixes and better enforcement of wiring limits.Artur Grabowski
From NetBSD.
2001-05-09update the NetBSD to the correct versionArtur Grabowski
2001-05-09More sync to NetBSD.Artur Grabowski
- Change pmap_change_wiring to pmap_unwire because it's only called that way. - Remove pmap_pageable because it's seldom implemented and when it is, it's either almost useless or incorrect. The same information is already passed to the pmap anyway by pmap_enter and pmap_unwire.
2001-05-07Few fixes from NetBSD.Artur Grabowski
- 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).
2001-05-05PMAP_NEW and UVM are no longer optional on i386.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-04-10Fix for machines which need to enlarge the kernel address space, at leastNiklas Hallqvist
1GB i386 machines needs this. The fix is heavily based on Jason Thorpe's found in NetBSD. Here is his original commit message: Instead of checking vm_physmem[<physseg>].pgs to determine if uvm_page_init() has completed, add a boolean uvm.page_init_done, and test against that. Use this same boolean (rather than pmap_initialized) in pmap_growkernel() to determine if we are being called via uvm_page_init() to grow the kernel address space. This fixes a problem on some i386 configurations where pmap_init() itself was needing to have the kernel page table grown, and since pmap_initialized was not yet set to TRUE, pmap_growkernel() was choosing the wrong code path.