summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc/include/param.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Celebrate OpenBSD 6.0 release by retiring the sparc port.tedu2016-09-011-232/+0
| | | | | You've served us well, good friend, but now it's time to rest. ok deraadt
* Now that the kernel virtual address space has been made larger, even onmiod2015-11-051-2/+2
| | | | | sun4/4c/4e, increase NKMEMPAGES_MAX_DEFAULT to the same value as platforms with limited, but not horribly limited, kva size.
* Add a bus_dma_tag_t for DVMA usage, suitable for use for devices not sittingmiod2015-03-301-3/+2
| | | | | | | | | | | | | | | | | behind a sun4m iommu. Move the existing dvma routines from vm_machdep.c to this new dvma.c; this allows for a few declarations to be removed from public headers. Extend the device attachment arguments (struct confargs) to pass a bus_dma_tag_t. mainbus receives the dvma bus_dma_tag_t, and devices pass the tag unchanged to their children, except for iommu(4) which replaces it with its own. Change the few sun4m-only drivers to pick the bus_dma_tag_t from confargs rather than assume iommu; this allows qlw(4) to attach and work on sun4c. ok kettenis@
* Rework the virtual memory layout on SRMMU systems (sun4d/sun4m) to use a muchmiod2015-03-181-3/+1
| | | | | | | | | | | | | | | | | | | | | lower VM_MIN_KERNEL_ADDRESS, since these systems are not crippled by the Sun-4 MMU hole and have the real 4GB of address space. Kernels running on Sun-4 MMU are not affected and will still be restricted to the existing 128MB of kernel space, with 1GB - 128MB of user space. Kernels running on SRMMU will now provide the low 3GB of address space to userland, and use the top 1GB for the kernel, except when compiled with option SMALL_KERNEL, in which case they will keep Sun-4 style the layout (this is temporary to allow for people to boot bsd.rd to upgrade even when not running 2.10 boot blocks, and will be removed eventually) A consequence of this is that the top of the userland stack is no longer at 0xf0000000. But since nothing in userland uses USRSTACK anymore, this should not be an issue. Tested on sun4c and various sun4m, with physical memory sizes ranging from 32 to 448MB.
* PGSHIFT and PGOFSET are now contained inside the kernel namespace.deraadt2013-03-261-3/+3
|
* ALIGNBYTES/ALIGN/ALIGNED_POINTER can move to the MI file.deraadt2013-03-251-5/+1
|
* refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedderaadt2013-03-231-94/+84
| | | | | | | 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...
* Provide namespace-safe alignment macros in <machine/_types.h>, withguenther2011-09-081-15/+4
| | | | | | | | compat names kept in <machine/param.h>. In <sys/socket.h>, pull in <sys/_types.h> instead of the namespace polluting <machine/param.h> and completely eliminate __CMSG_ALIGN, replaced by _ALIGN ok deraadt@
* Make sure the ALIGN() macro uses u_long on all platforms for consistency, andmiod2011-04-071-3/+3
| | | | update the comment block accordingly.
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-231-4/+4
| | | | Discussed and okay drahn@. Okay deraadt@.
* typomiod2010-07-111-2/+2
|
* sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 andmiod2010-07-101-85/+95
| | | | | | sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are not supported yet. ok deraadt@
* There is absolutely no need to double map DVMA addresses into the kernel addressmiod2010-06-291-11/+1
| | | | | space on SRMMU systems (i.e. sun4m), so don't do it anymore and update misleading comments.
* ctob/btoc -> ptoa/atopmartin2007-11-281-5/+1
| | | | from Rodolfo Gouveia
* Move the MSIZE, MCLSHIFT, MCLBYTES and the MCLOFSETthib2007-05-281-9/+1
| | | | | | | | | | | mbuf constants from MD param.h to MI param.h. Besides being the same on every arch, things will most probly break if any arch has different values then the others. The NMBCLUSTERS constants needs to be MD though; ok miod@,krw@,claudio@
* slighly -> slightlymiod2007-04-101-2/+2
|
* Make all DEV_BSIZE definitions consistant by using (1 << DEV_BSHIFT)krw2006-08-121-2/+2
| | | | | | | | in the six cases using "512". As DEV_BSHIFT is always 9, this should be a no-op. "no objections" miod@ "I can't see any problem doing this." pedro@
* remove unused bdbtofsb(bn) macromartin2006-03-191-9/+1
| | | | found by drahn@
* Shrink NKMEMPAGES_MAX back to 4MB for 3.9, as this still has issues on >= 512MBmiod2006-02-281-2/+2
| | | | | machines; this will be fixed post release. Reported by Serge Basterot. ok deraadt@
* remove Mach macros, they were unused anywaymartin2005-11-011-7/+1
|
* Do not try increasing NKMEMPAGE_MAX on sun4m at all, until we makemiod2005-09-251-2/+1
| | | | kernel_map larger.
* Reduce NKMEMPAGES_MAX_DEFAULT_SUN4M, or we may allocate too much of kernel_mapmiod2005-09-211-2/+2
| | | | on large memory sun4m machines.
* Change the NKMEMPAGES range to 4-64MB for 32bit arches, and 8-128MB for 64bitmiod2005-09-121-3/+4
| | | | | arches; except on sparc where the range is 4-8 for !sun4m and 4-64 for sun4m, selected at runtime.
* Get rid of unused SINCR and SSIZE constants.miod2005-07-311-2/+1
|
* provide md USPACE_ALIGN zero on all but mips; deradat@ pefo@ okmickey2004-08-061-1/+2
|
* remove the GATEWAY junk thingy; at the same time, select a new fatderaadt2004-04-191-9/+2
| | | | cluster value that noone will really need to crank.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* The previous commit broke the bootblocks, since uvmexp is not availablemiod2002-03-151-19/+13
| | | | | there. Win some uglyness points in fixing this.
* First round of __P removal in sysmillert2002-03-141-5/+5
|
* On sparc, PAGE_SIZE and friends might not be a compile-time constant.miod2002-03-131-35/+25
| | | | | | | | | | Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
* Provide PAGE_{MASK,SHIFT,SIZE} ``constants'' for every cpu combination.miod2002-02-191-1/+13
| | | | Fixes PR #2219
* Define MCLBYTES from MCLSHIFT, rather than providing the final value.miod2001-12-101-2/+2
| | | | (sync with other arches)
* make nkmempages dynamic based on memory. okay art@ from netbsd:provos2001-12-051-5/+5
| | | | | | | | | | | | | | date: 2000/02/11 19:22:52; author: thorpej; Add some very simple code to auto-size the kmem_map. We take the amount of physical memory, divide it by 4, and then allow machine dependent code to place upper and lower bounds on the size. Export the computed value to userspace via the new "vm.nkmempages" sysctl. NKMEMCLUSTERS is now deprecated and will generate an error if you attempt to use it. The new option, should you choose to use it, is called NKMEMPAGES, and two new options NKMEMPAGES_MIN and NKMEMPAGES_MAX allow the user to configure the bounds in the kernel config file.
* Get rid of the PMAP_NEW option by making it mandatory for all archs.art2001-07-181-3/+1
| | | | | The archs that didn't have a proper PMAP_NEW now have a dummy implementation with wrappers around the old functions.
* change MSIZE to 256, okay @deraadtprovos2001-07-061-2/+2
|
* Switch sparc to PMAP_NEW. I've been running with that code for ages.art2001-05-101-1/+3
|
* Get rid of CLSIZE and all related stuff.art2001-05-051-8/+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.
* - increase the amount of space mapped for dvma on sun4mjason2001-01-151-2/+3
| | | | | | | | - use a flag to specify allocations for 24 bit devices - compatibility macros to deal with the 32 bit devices This fixes the 'le at sbus' on sun4m problem (with the extent fixes earlier), and allows the Artecon ethernet cards to work in sun4m machines.
* multiple inclusion protect because of pstat and socket.h needing ALIGNBYTESderaadt2000-03-081-1/+7
|
* enlarge msgbuf, somewhat line netbsd didderaadt2000-02-221-1/+3
|
* Use extents instead of rmaps to handle dvma space.art2000-02-151-8/+2
|
* In the cases where we are sure what page size we have, define PAGE_SIZEart1999-11-251-1/+13
| | | | (and friends).
* vm_offset_t -> {v,p}addr_t and vm_size_t -> {v,p}size_tart1999-07-091-3/+3
| | | | | remove "register" keywords Various cleanups.
* Add sparc_btop and sparc_ptob for consistency with other portsmillert1998-08-181-1/+7
|
* do not break the bootblocksderaadt1997-12-251-9/+1
|
* ifdef some definitions of NBPG that use kernel variables, when theangelos1997-12-211-1/+9
| | | | file is included from userland programs (such as lsof)
* Double default NMBCLUSTERS settings.downsj1997-09-171-3/+3
|
* Mostly sync to NetBSD-current 970804.downsj1997-08-081-53/+56
| | | | | GENERIC currently compiles and runs; some devices (isp) are not complete and not yet enabled.
* MCLSHIFT=11, and calc MCLBYTES in such terms. found by pefoderaadt1996-12-111-1/+1
|
* netbsd port, now we merge our changes back inderaadt1996-08-111-19/+87
|