summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* no need to specify the -t flag to ctagsderaadt2010-11-031-2/+2
|
* Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,miod2010-09-282-2/+15
| | | | | to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
* malloc() without a WAIT flagderaadt2010-09-281-2/+3
|
* typomiod2010-09-281-2/+2
|
* Introduce a DKF_NOLABELREAD flag, which is used by a device to preventjsing2010-09-231-1/+2
| | | | | | automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
* Add pppx(4) to the cdevs of the remaining archs.claudio2010-09-231-1/+3
| | | | OK dlg@
* Add DIOCGPDINFO to drivers that were lacking it. Where therekrw2010-09-223-9/+14
| | | | | | | | | | | | is no easily available physical information outside of the stored disklabel just make it a synonym for DIOCGDINFO. Commit on the theory it is unlikely to harm, and fallout can be addressed in the mass re-compile that will follow j2k10. Should allow auto-allocation of disks to work with all devices. ok deraadt@
* All users of physio(9) now pass NULL as the buf pointer argument, somatthew2010-09-224-12/+12
| | | | | | | no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
* Get rid of evcount's support for arranging counters in a treematthew2010-09-204-12/+10
| | | | | | | hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
* Store a struct device pointer within struct disk and populate this whenjsing2010-09-084-8/+8
| | | | | | | disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
* - spello, short-hand -> shorthandjasper2010-09-061-3/+3
| | | | ok miod@
* Remove bogus LHS casts. makes gcc4 happy.kettenis2010-09-053-9/+9
| | | | ok miod@
* Make gcc4 happy. Similar to what we've done to sparc64 a couple of months ago.kettenis2010-09-051-2/+3
| | | | ok miod@
* Fix inline assembler to make it acceptable to gcc4. Similar to what we'vekettenis2010-09-051-3/+3
| | | | | | done to sparc64 a couple of months ago. ok miod@
* disable SVR4 compat by default; ok kettenisderaadt2010-08-301-3/+3
|
* Garbage collect struct dkdriver.matthew2010-08-284-26/+4
| | | | ok miod@; "please go ahead" jsing@
* Make sure fast trap handlers correctly invoke soft interrupts by markingmiod2010-08-175-7/+19
| | | | | | them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
* Make sure we reserve enough room after the kernel image to avoid stompingmiod2010-08-162-14/+16
| | | | | | over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
* Every time you ignore uiomove() return value, $DEITY kills a littlemiod2010-08-061-2/+4
| | | | | | $ADORABLE_FELINE. ok deraadt@ matthew@
* leftover from revert of long agojakemsr2010-07-241-2/+2
| | | | "feel free!" deraadt
* Fix more cdev initializations which were using enodev for poll; ok kettenisderaadt2010-07-211-3/+3
|
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-152-8/+16
| | | | | | | | | | 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
* typomiod2010-07-111-2/+2
|
* sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 andmiod2010-07-1033-424/+557
| | | | | | sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are not supported yet. ok deraadt@
* sun4e support in the bootblocks, derived from a diff from jason@ 7 years ago.miod2010-07-065-69/+98
|
* Having common ienab_bic() and ienab_bis() entry points for sun4/4c and sun4mmiod2010-07-065-77/+58
| | | | | | | | 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.
* Remove unused CPUARCH_xxx and CPUCLS_xxx defines, as well as all the unusedmiod2010-07-061-47/+5
| | | | CPUTYP_xxx defines.
* restrict srmmu handling to just sun4mderaadt2010-07-041-2/+2
|
* No more ss(4) or usscanner(4). Unused, unloved and unmaintained.krw2010-07-036-13/+7
| | | | | | General huzzahs. "go for it" deraadt@
* delete sunos filestedu2010-07-021-64/+0
|
* remove support for compat_sunos (and m68k4k). ok deraadt guenthertedu2010-07-029-64/+14
|
* Move common code for waking up writers on a tty into a function.nicm2010-07-023-27/+8
| | | | ok deraadt matthew millert
* gremlin crept in by accidentmiod2010-07-021-3/+3
|
* Change scsibus(4)'s scsi_link array to an SLIST to save memory onmatthew2010-07-011-3/+3
| | | | | | sparsely populated buses. ok dlg@, krw@
* Remove the ``never cache virtual addresses in the DVMA range'' inmiod2010-06-301-8/+3
| | | | | | 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.
* In the boot blocks, stop assuming we have a 1:1 mapping of low physicalmiod2010-06-2914-574/+1221
| | | | | | | | | | | | | | | | | | | | | | 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.
* During kernel bootstrap, stop assuming the kernel image has been loaded inmiod2010-06-297-324/+416
| | | | | | | low physical memory, but instead figure out where it has been loaded from the current MMU setup. From NetBSD.
* There is absolutely no need to double map DVMA addresses into the kernel addressmiod2010-06-295-80/+31
| | | | | space on SRMMU systems (i.e. sun4m), so don't do it anymore and update misleading comments.
* Rework cypress cpu cache setup, and enable writeback mode. Adapted frommiod2010-06-291-15/+10
| | | | NetBSD; tested on SM100.
* Remove all adapter-specific 'struct scsi_device's. They are never used. Firstkrw2010-06-282-21/+3
| | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-283-6/+6
| | | | | | | | 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
* If you include <uvm/uvm.h>, you do not need to include any other <uvm/uvm_foo.h>miod2010-06-271-5/+2
|
* make sparc compile again after tag team viking/guenther breakage.beck2010-06-274-4/+11
| | | | ok kettenis@
* Add the TPOFF* and DTP{MOD,OFF}* definitions that ld.so will need forguenther2010-06-271-1/+7
| | | | | doing thread-local storage and fix a typo in one that was already defined. ok kettenis@ drahn@
* uvm constraints. Add two mandatory MD symbols, uvm_md_constraintsthib2010-06-272-5/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* Don't #include <sys/user.h> into files that don't need the stuffguenther2010-06-268-16/+8
| | | | | | | | 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@
* When mapping memory into dvma space, use pmap_kenter_pa() instead ofoga2010-06-221-5/+4
| | | | | | | | pmap_enter(), according to the XXX comment right above. Removes another un-CANFAILed pmap_enter. ok miod@
* Some early 2.x sun4c PROM will default to serial input but glass output if nomiod2010-06-221-2/+5
| | | | | | | | | 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.
* Remove IOMMU pte defines; only those in iommureg.h are used.miod2010-06-181-10/+1
|
* dvma_free() the exact size passed to dvma_malloc().miod2010-06-181-2/+2
|