summaryrefslogtreecommitdiffstats
path: root/sys/arch/i386/include/vmparam.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Bump MAXTSIZ to 256MB on i386.kurt2021-03-161-2/+2
| | | | okay deraadt@
* - Make rnd hints avoid the brk area. The rnd allocator refuses to allocate inotto2018-04-171-2/+2
| | | | | | | | | | | the brk area anyway. - Use a larger hint bound to spread the allocations more for the 32-bit case - Simplified the overy abstracted brs/stack allocator and switch of guard pages for the brk case. This allows i386 some extra space, depending on memory usage patterns. - Reduce brk area on i386 to give the rnd space more room ok stefan@ sthen@
* Remove the definition of USRTEXT. It has no relevance outside of the non-PIEmiod2015-11-011-13/+1
| | | | | a.out world. ok deraadt@ kettenis@
* bump i386 MAXDSIZ to 3GB. - "If you're running this, and presumably actuallysthen2015-04-261-2/+2
| | | | | using that much memory, go for it" tedu@ "I don't see any immediate downsides" kettenis@
* Move declaration of struct vm_page_md from <machine/vmparam.h> tomiod2014-01-301-10/+1
| | | | | | <machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
* unifdef -D__HAVE_VM_PAGE_MD - no functional change.miod2014-01-231-2/+1
|
* PGSHIFT -> PAGE_SHIFTderaadt2013-03-251-2/+2
|
* refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedderaadt2013-03-231-2/+2
| | | | | | | to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
* Bump MAXTSIZ to 128 MB, some binaries are quite large.fgsch2013-01-271-2/+2
| | | | Agreed with millert@ and guenther@
* Remove the freelist member from vm_physsegoga2011-05-301-5/+1
| | | | | | | | | | | | | | | | | | The new world order of pmemrange makes this data completely redundant (being dealt with by the pmemrange constraints instead). Remove all code that messes with the freelist. While touching every caller of uvm_page_physload() anyway, add the flags argument to all callers (all but one is 0 and that one already used PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue without it. Should shrink the code a bit, as well. matthew@ pointed out some mistakes i'd made. ``freelist death, I like. Ok.' ariane@ `I agree with the general direction, go ahead and i'll fix any fallout shortly'' miod@ (68k 88k and vax i could not check would build)
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-231-4/+4
| | | | Discussed and okay drahn@. Okay deraadt@.
* increase i386 maxdsiz to 2GB. comments from ariane deraadt kettenis.tedu2011-01-071-2/+2
| | | | ok deraadt
* oops, i forgot to check in the BRKSIZ define in uvm, but deraadt thinkstedu2010-12-151-2/+2
| | | | its better as a per arch MD define anyway. all default to MAXDSIZ as before.
* add a BRKSIZ define and use it for the heap gap constant, decouplingtedu2010-12-151-1/+4
| | | | heap gap from max data size. nothing else changes yet. ok deraadt
* Backout pmemrange (which to most people is more well known as physmemariane2009-06-161-8/+1
| | | | | | allocator). "i can't see any obvious problems" oga
* physmem allocator: change the view of free memory from single free pagesariane2009-06-011-1/+8
| | | | | | | | | to free ranges. Classify memory based on region with associated use-counter (which is used to construct a priority list of where to allocate memory). Based on code from tedu@, help from many. Ok art@
* Add new uvm function called uvm_map_pie() which takes align as akurt2008-07-181-1/+5
| | | | | | | | | | | | parameter and returns an aligned random load address for position independent executables to use. This also adds three new vmparam.h defines to specify the maximum address, minimum address and minimum allowed alignment for uvm_map_pie() to use. The PIE address range for i386 was carefully selected to work well within the i386 W^X framework. With much help and feedback from weingart@. okay weingart@, miod@, kettenis@, drahn@
* On user/kernel shared page table machines, do not let processes map theirderaadt2008-06-241-2/+2
| | | | | | own page 0, as discussed with miod (and many others previously, including art and toby). On sparc, make this __LDPGSZ because PAGE_SIZE is non-constant ok miod tedu
* Provide carefully crafted DEADBEEF* values, this was initially forgotten inmiod2007-06-011-1/+7
| | | | | the commit which enabled DEADBEEF* overrides, then values have been discussed a bit more and improved; reminded by and ok art@
* Switch i386 pmap to VM_PAGE_MD. We store the MOD/REF flags inart2007-04-261-8/+9
| | | | | | | pg_flags, so we actually shave quite a few bytes from the memory we eat at boot. (a machine with 1GB memory saves 256k). deraadt@, pedro@, krw@ ok. Lots of testing.
* Bump max number of physical segments. Machines in the wildweingart2007-03-281-2/+2
| | | | | | seem to have reached this limit. ok marco@, looks ok ckuethe@
* Revert PAE pmap for now, until the strange bug is found. This stopstom2007-02-201-8/+7
| | | | | | | | | | the freezes many of us are seeing (especially on amd64 machines running OpenBSD/i386). Much testing by nick@ (as always - thanks!), hugh@, ian@, kettenis@ and Sam Smith (s (at) msmith (dot) net). Requested by, input from, and ok deraadt@ ok art@, kettenis@, miod@
* implement separate PAE pmap that allows access to 64g of physmemmickey2006-04-271-7/+8
| | | | | | | | | | | | | if supported by the cpu(s). currently not enabled by default and not compiled into ramdisks. this grows paddr_t to 64bit but yet leaves bus_addr_t at 32bits. measures are taken to favour dmaable memory allocation from below 4g line such that buffer cache is already allocated form below, pool backend allocator prefers lower memory and then finally bounce buffers are used as last resort. PAE is engaged only if global variable cpu_pae is manually set to non-zero and there is physical memory present above 4g. simplify pcibios address math to use u_long as we always will be in the 32bit space.
* allow for more physmem segments; as required by some dell from dhill@mickey2006-03-151-2/+2
|
* finnish the PTDPTDI and APTDPTDI conversion to PDSLOT_PTE and PDSLOT_APTE thus reducing confusion; remove compatibility defines and commentsmickey2005-11-231-8/+5
|
* kernal->kernel;jmc2005-08-011-2/+2
| | | | | from netbsd pr #30872 (anonymous post); ok deraadt@ krw@
* use MD #define to choose stackgap size per-architecture. on sparc, specialderaadt2005-04-111-1/+3
| | | | case sun4c/sun4 -- because address space is more constrained
* MAXSLP is not really an MD-configurable define so move it to param.h; miod@ testingmickey2004-11-281-12/+1
|
* Crank SHMMAXPGS from 2048 to 8192. Other platforms where peoplemillert2004-01-011-2/+2
| | | | | are using lots of shm may also wish to also increase SHMMAXPGS. OK deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Move exec base to 0x1c000000, exe/data gap to 512MB. Allows betterdrahn2003-05-051-2/+5
| | | | | interleave of exe/shared libs. Raise MAXDSIZ back to 1G. This change REQUIRES a binary update on i386.
* i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.drahn2003-04-171-2/+2
| | | | DARPA funded work.
* Getting rid of vm_offset_tart2003-01-161-6/+6
|
* Patch from Daniel Lucq <daniel@lucq.org>maja2002-02-171-2/+1
| | | | | | | | The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@
* VM_KMEM_SIZE no longer needed.art2001-12-051-2/+1
|
* Now that pmaps can have vm_page_md, make pmap_physseg optional.art2001-11-301-1/+2
|
* Remove more old, dusty, unused defines.miod2001-09-221-23/+1
|
* MNN is no longer an option.art2001-06-271-3/+1
|
* Update some comments wrt. the CLSIZE changes.art2001-05-061-10/+1
| | | | | And remove that memory price comment from 1981. It is amusing, but also confusing because the math in there is only correct on vax.
* PMAP_NEW and UVM are no longer optional on i386.art2001-05-051-11/+1
|
* Get rid of CLSIZE and all related stuff.art2001-05-051-4/+4
| | | | | | | | | 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.
* Merge in NetBSD's PMAP_NEW, still disabledniklas2001-03-221-1/+7
|
* A fix to the dreaded isadmaattach panic which hunts people playing withniklas2000-04-251-2/+2
| | | | | large memory machines. This time I really hope we can continue quite a bit away over the Gig.
* Double the amount of shared memory pages we can maximally allocate. Thisniklas1999-10-031-2/+2
| | | | makes TV watching in fullscreen in 640x480 work.
* crank default limitsderaadt1999-09-201-3/+3
|
* grown i386 kvm to 512MBderaadt1999-09-171-9/+5
|
* some defines needed by uvmart1999-02-261-1/+5
|
* convert i386 to MNNmickey1998-04-251-4/+27
|
* and considering text segments are normally not even going to hit swapderaadt1997-08-261-2/+2
|
* come on, let people run useful sized software!deraadt1997-08-261-2/+2
|