summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
AgeCommit message (Collapse)Author
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-06-02nuke my clause 3 & 4 (and a couple jointly (c) with Theo).Jason Wright
2003-06-02licence cleanupTheo de Raadt
2003-05-14remove unneeded FB_FORCELOW; miod@ agreed.Federico G. Schwindt
2003-05-13Nuke a few simple commons.Miod Vallat
2003-04-13Add a simple driver for the SBus ``Prestoserve'' NVRAM cards.Miod Vallat
The Legato Prestoserve NFS accelerator used to be very popular, back when NFSv3 did not exist, and disks and network speeds were not as good as they are now... This driver does not attempt to play any game with filesystems, but will only provide access to the cards NVRAM, as a block device. If you have bright ideas on ``what to do with a few MB of battery-backed memory'', I am interested in realistic suggestions!
2003-01-24PMAP_{DE,}ACTIVATE are not used anymore.Miod Vallat
2003-01-13Bye, bye vm_offset_t and vm_size_t, sparc doesn't need you anymore.Artur Grabowski
2002-12-11Added paranoia to make sure that gcc doesn't reorder spl* inlines.Artur Grabowski
2002-11-22new sysctl: machdep.v8mul says whether the kernel replaced the mul/div/remTheo de Raadt
stubs, so that userland can do the same. we cannot just determine based on sun4m, because cypress (at least) is a sun4m cpu without the instructions
2002-11-11Various little pmap changes:Miod Vallat
- get rid of splpmap, use splvm everywhere - harmonize some 4_4c routines to wake them easier to diff against 4m - fix an spl botch in can't happen situations on 4_4c - fix pmap_stas.ps_npg_prot_all on 4m in case someone cares - slightly better pmap_kenter_pa and pmap_kremove on 4_4c art@ ok
2002-11-06- always initialize colormaps, even if the frame buffer is non console; thisMiod Vallat
helps if the ramdac does not get initialized (idea from jason@) - only register a shutdown hook for the frame buffers which need it, if this is the console frame buffer. Otherwise this is just a waste of time.
2002-10-28Convert sparc pmap from physseg to VM_PAGE_MD.Artur Grabowski
This allows us to remove some ambiguities on how some functions are called, remove some diagnostic checks for conditions that can never happen and remove the ugly hack with "pmap_initialized". It also removes some unnecessary overhead in time-critical functions like pmap_{zero,copy}_page and pmap_{is,clear}_{mod*,ref*}. miod@ ok
2002-10-23Add a trivial va_copy() macro to all architectures but powerpcTodd C. Miller
(which I will leave for Dale since it needs special handling). From NetBSD (and same as sparc64). espie@ OK
2002-10-06Garbage collect __HAVE_SPLASSERT. It wasn't necessary.Artur Grabowski
2002-09-20Support to run the 24 bit fb in 8 bit mode or cg12 in 1 bit modeFederico G. Schwindt
via flags, using 0x0001. miod@ ok.
2002-09-10Change the pmap_zero_page and pmap_copy_page API to take the struct vm_page *Artur Grabowski
instead of the pa. Most callers already had it handy and those who didn't only called it for managed pages and were outside time-critical code. This will allow us to make those functions clean and fast on sparc and sparc64 letting us to avoid unnecessary cache flushes. deraadt@ miod@ drahn@ ok.
2002-08-12Neuter the machdep.vsyncblank sysctl, as this setting is now controlledMiod Vallat
by wsconsctl. ok art@
2002-08-12Convert sparc console code from rcons and pseudo-devices to rasops and wscons.Miod Vallat
For most framebuffers it is faster. Other changes include: o 24 bit support in tcx(4) for the S24 framebuffer o accelerated cgsix(4) text console o new cgtwelve(4) driver for the GS framebuffer o improved serial driver code o better keyboard support The following framebuffers have not been tested but should work: cgfour, cgeight and cgfourteen These changes will require XF4 changes, to use Xwsfb instead of Xsun*, to be commited later today. Most of the work by me during the LSM and the week after, with code borrowed from jason@, NetBSD (new serial code), and feedback from mickey@. Work on pnozz(4) done by millert@
2002-08-11NATIVE_EXEC_ELF for sparc and ELF reloaction types.Artur Grabowski
2002-08-11ELF support for DDB.Artur Grabowski
2002-08-11Prepare for ELF.Artur Grabowski
2002-07-30Add SIZE_MAX define. This is the same as SIZE_T_MAX but more portable.Todd C. Miller
The only OSes I've seen that use SIZE_T_MAX are 4.4BSD-derived whereas SYSV things seem to use SIZE_MAX. It is also consistent with SSIZE_MAX (which we already have). deraadt@ OK
2002-07-26Zap VM_KMEM_SIZE, not used anymore.Artur Grabowski
Pointed out by francisco <frisco@blackant.net>
2002-07-23Define __HAVE_SPLASSERT on architectures that support splassert.Artur Grabowski
2002-07-23Define IPL_NONEArtur Grabowski
2002-07-20define __HAVE_PMAP_PHYSSEGArtur Grabowski
2002-07-12Use interrupts for fetching ADC conversions instead of polling.Jason Wright
2002-07-10proper cdev_decl(ksyms), fix ksyms's broken functionsMichael Shalayeff
2002-07-09allow getting and setting of the ADC, DAC, and PIO ports on the daadio (this ↵Jason Wright
has been sitting in my tree for awhile)
2002-06-14sysctl for getting the cputype.Artur Grabowski
2002-06-07Remove obsolete CLKF_BASEPRI(). ok niklas@, miod@ and art@Thomas Nordin
2002-05-15Implement splassert() for sparc - a tool for finding problems related toArtur Grabowski
spl handling (already found 3 problems). Man page in a few seconds. deraadt@ ok.
2002-04-30Fix an ancient problem in how sparc interrupts are handled.Artur Grabowski
There are many interrupt handlers that assume that they don't need to do any spl protection in their code because the interrupt of some level can't be interrupted by an interrupt of the same level. The problem is that some interrupt handlers have hardware levels that are lower then their "software" levels. Fix this by adding an additional field to struct intrhand that specifies which "software" level an interrupt handler has and blocks that level while handling the interrupt. This new field is initialized in intr_establish which gets an additional argument (which can be -1 meaning that the interrupt handler doesn't need to block any additional level). ok deraadt@
2002-04-30dmesg logs show that many NICs run at prio 7. Bump IPL_NET to 7.Artur Grabowski
deraadt@ ok.
2002-04-29Define placeholders for art's splassert() debugging stuff on all arches.Miod Vallat
Currently as no-ops everywhere. ok art@, deraadt@
2002-04-28Rename all PIL_* constants to IPL_* to match other archs and make themArtur Grabowski
usable in MD code in the future. deraadt@ ok
2002-04-24Introduce a new file, machine/internal_types.h, to hold that specific archMarc Espie
type characteristics. internal_types.h will contain only settings invisible from standard C, e.g., in the __* or _[A-Z]* namespace, and be reused by files like limits.h. This allows us to shorten machine/limits.h greatly, as all the common defines are now in sys/limits.h, plus a small stub in internal_types.h. Tested on all arches as far as I know. Approved after discussion with art, millert, deraadt, and others.
2002-03-15Cosmetic changes only, primarily making comments line up nicely after theTodd C. Miller
__P removal.
2002-03-15The previous commit broke the bootblocks, since uvmexp is not availableMiod Vallat
there. Win some uglyness points in fixing this.
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
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.
2002-02-20frantzen's stackghost code. wcookie is set at 0 right now, until debuggerTheo de Raadt
support added (i mean, written)
2002-02-19Provide PAGE_{MASK,SHIFT,SIZE} ``constants'' for every cpu combination.Miod Vallat
Fixes PR #2219
2002-02-17Patch from Daniel Lucq <daniel@lucq.org>Mats O Jansson
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@
2002-02-14__weak_alias() support.Federico G. Schwindt
2002-01-23compatability -> compatibility.Federico G. Schwindt
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-12-11Remove declarations that already exist in <sys/conf.h>Miod Vallat