summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2010-08-06Every time you ignore uiomove() return value, $DEITY kills a littleMiod Vallat
$ADORABLE_FELINE. ok deraadt@ matthew@
2010-07-24leftover from revert of long agoJacob Meuser
"feel free!" deraadt
2010-07-21Fix more cdev initializations which were using enodev for poll; ok kettenisTheo de Raadt
2010-07-15add two new members to structs audio_encoding and audio_prinfo.Jacob Meuser
for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
2010-07-11typoMiod Vallat
2010-07-10sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 andMiod Vallat
sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are not supported yet. ok deraadt@
2010-07-06sun4e support in the bootblocks, derived from a diff from jason@ 7 years ago.Miod Vallat
2010-07-06Having common ienab_bic() and ienab_bis() entry points for sun4/4c and sun4mMiod Vallat
is stupid, since the bits in the interrupt enable register are completely different between 4/4c and 4m. Instead, provide distinct, explicit function names to handle the interrupt enable register.
2010-07-06Remove unused CPUARCH_xxx and CPUCLS_xxx defines, as well as all the unusedMiod Vallat
CPUTYP_xxx defines.
2010-07-04restrict srmmu handling to just sun4mTheo de Raadt
2010-07-03No more ss(4) or usscanner(4). Unused, unloved and unmaintained.Kenneth R Westerback
General huzzahs. "go for it" deraadt@
2010-07-02delete sunos filesTed Unangst
2010-07-02remove support for compat_sunos (and m68k4k). ok deraadt guentherTed Unangst
2010-07-02Move common code for waking up writers on a tty into a function.Nicholas Marriott
ok deraadt matthew millert
2010-07-02gremlin crept in by accidentMiod Vallat
2010-07-01Change scsibus(4)'s scsi_link array to an SLIST to save memory onMatthew Dempsky
sparsely populated buses. ok dlg@, krw@
2010-06-30Remove the ``never cache virtual addresses in the DVMA range'' inMiod Vallat
pv_changepte4m() since DVMA addresses are never loaded in the SRMMU; this chunk was forgotten in the previous `don't steal DVMA out of kernel_map on 4m' commit.
2010-06-29In the boot blocks, stop assuming we have a 1:1 mapping of low physicalMiod Vallat
memory, but instead gather memory layout information and work with the MMU (or the PROM) to make sure we can actually load the kernel image in a proper contiguous physical memory area. In order to do this, we look at the kernel image twice; during the first pass, the kernel footprint is computed, and then after making sure it can be loaded, the second pass loads the actual image. Since such a logic doesn't work on media which can not seek backwards, such as tapes, we check for the boot device being a tape and, in that case, assume a fixed (generous) image size and don't load the kernel symbol table (to avoid seeking backwards); since tape boot is supposed to be only used to boot bsd.rd, this is something we can live with. While there, lower the address the boot blocks are loaded in memory, because the last crank did not work with some early sun4c OpenPROM, which only map about 3.5MB of memory. Memory games logic from NetBSD, tape handling by me.
2010-06-29During kernel bootstrap, stop assuming the kernel image has been loaded inMiod Vallat
low physical memory, but instead figure out where it has been loaded from the current MMU setup. From NetBSD.
2010-06-29There is absolutely no need to double map DVMA addresses into the kernel addressMiod Vallat
space on SRMMU systems (i.e. sun4m), so don't do it anymore and update misleading comments.
2010-06-29Rework cypress cpu cache setup, and enable writeback mode. Adapted fromMiod Vallat
NetBSD; tested on SM100.
2010-06-28Remove all adapter-specific 'struct scsi_device's. They are never used. FirstKenneth R Westerback
step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
2010-06-28Allow tty drivers to request larger buffers at attach time using aTheo de Raadt
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
2010-06-27If you include <uvm/uvm.h>, you do not need to include any other <uvm/uvm_foo.h>Miod Vallat
2010-06-27make sparc compile again after tag team viking/guenther breakage.Bob Beck
ok kettenis@
2010-06-27Add the TPOFF* and DTP{MOD,OFF}* definitions that ld.so will need forPhilip Guenthe
doing thread-local storage and fix a typo in one that was already defined. ok kettenis@ drahn@
2010-06-27uvm constraints. Add two mandatory MD symbols, uvm_md_constraintsThordur I. Bjornsson
which contains the constraints for DMA/memory allocation for each architecture, and dma_constraints which contains the range of addresses that are dma accessable by the system. This is based on ariane@'s physcontig diff, with lots of bugfixes and additions the following additions by my self: Introduce a new function pool_set_constraints() which sets the address range for which we allocate pages for the pool from, this is now used for the mbuf/mbuf cluster pools to keep them dma accessible. The !direct archs no longer stuff pages into the kernel object in uvm_km_getpage_pla but rather do a pmap_extract() in uvm_km_putpages. Tested heavily by my self on i386, amd64 and sparc64. Some tests on alpha and SGI. "commit it" beck, art, oga, deraadt "i like the diff" deraadt
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffPhilip Guenthe
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2010-06-22When mapping memory into dvma space, use pmap_kenter_pa() instead ofOwain Ainsworth
pmap_enter(), according to the XXX comment right above. Removes another un-CANFAILed pmap_enter. ok miod@
2010-06-22Some early 2.x sun4c PROM will default to serial input but glass output if noMiod Vallat
keyboard is connected but a framebuffer exists in the machine; the current kernel console code will complain and switch to full serial, but later on the framebuffer would incorrectly take over the console. Correctly detect this situation and reset the `fbnode' variable. This is an improvement of the fix which went in rev 1.54 of this file.
2010-06-18Remove IOMMU pte defines; only those in iommureg.h are used.Miod Vallat
2010-06-18dvma_free() the exact size passed to dvma_malloc().Miod Vallat
2010-06-17aligment -> alignmentMiod Vallat
2010-06-09Wire up device nodes for disk mapper.Joel Sing
ok deraadt@
2010-06-07Sync with GENERIC and SUN4.Miod Vallat
2010-06-07Rework the way onboard devices attach on Sun 4/110 systems (which only have aMiod Vallat
28 bit address bus) by reusing the regular sun4 configuration stanzas (with the upper four bits set in the device addresses), and clearing them when searching for a PROM mapping. This makes the obio autoconf code simpler, and all knowledge of the 4/110 specifics is now contained in a single file (dev/obio.c). ok todd@ deraadt@
2010-06-07Do not invoke cache_enable() if there is no cache; prevents a spurious (andMiod Vallat
bogus) `cache enabled' line in dmesg on 4/110. ok todd@ deraadt@
2010-06-07Nuke old eeprom.h compatibility defines; ok todd@Miod Vallat
2010-06-06typo in commentMiod Vallat
2010-06-01use --warn-common for linking (some arch's will show new warnings), andTheo de Raadt
prefer binutils-compatible options in STRIPFLAGS (now that our non-binutils strip(1) can handle them too) ok drahn; miod kettenis (for parts)
2010-05-31Completely rewrite the tags file creation process. use config(8) againstTheo de Raadt
a fat kernel (GERERIC or GENERIC.MP) into a temporary dir, then extract some variables using make -V, and after some more singing and dancing use this full and (more) correct list of files with ctags. Don't read this code. ok guenther
2010-05-28${PARAM} is now included in ${CPPFLAGS}, so stop passing it separatelyPhilip Guenthe
to genassym.sh ok deraadt
2010-05-25The _arch and _mach variables now come from config(8), decreasing even furtherTheo de Raadt
the differences between these files. You will need a newer config(8) binary to be able to build kernels. ok kettenis miod
2010-05-25Hand-list the two-step assym.h -> .[Ss] -> .o dependencies. TheTheo de Raadt
result: kernels built without 'make depend'-provided information (ie. the .depend file) are more likely to have their *.[Ss] file compilations track changes to *.h files. The "*.o: assym.h" dependencies listed are gotten from reading the .depend output --- from the biggest kernel possible (ie. GENERIC.MP). When an architecture changes in a substantial way (new .[sS] files), the list should be updated in the prettiest way possible. This is not encouraging people to skip 'make depend'; other issues are not resolved and may be solved later with a change guenther is working on. You can still screwed really easily, so continue running make depend as config tells you. Idea from a discussion with drahn ok drahn, kettenis likes the idea too
2010-05-25${SRCS} is only used once, and fits onto the line where it is usedTheo de Raadt
idea that came out of discussion with drahn
2010-05-24give up on -Wvariable-declTheo de Raadt
delete the archaic links: target which is easily misused handle special .[sS] files in a portable way
2010-05-24Reduce differences between the Makefile.* files for all architectures.Theo de Raadt
ok various people, tested by fewer people, tested by me on 15.
2010-05-23rely on __sparc__ insteadTheo de Raadt
2010-05-23add dkio.h to the last of the disk ioctl users i can find.David Gwynne
requested by deraadt@ who was rightly disparaging of my grep skillz.
2010-05-15Repair identification of P4 bwtwo on 4/330 and 4/370 models, which got brokenMiod Vallat
in 1.36.