summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert to uiomove()miod2015-02-101-5/+5
|
* Convert sun4 eeprom access to uiomove()miod2015-02-101-8/+8
|
* Convert to uiomove().miod2015-02-101-11/+12
| | | | ok guenther@
* First step towards making uiomove() take a size_t size argument:miod2015-02-105-13/+13
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* Change the way stackgap_random is applied. Instead of applying it within themiod2015-02-091-5/+2
| | | | | | fixed stack area of the exec'd image, and risking hitting process limits, should we want to increase stackgap_random, the randomness is applied to the stack region in the process' vmspace.
* Do not use USRSTACK when VM_MIN_KERNEL_ADDRESS is what you really mean.miod2015-02-093-6/+5
|
* replace hand rolled code to maintain a list of bufs with a fifodlg2015-02-082-65/+22
| | | | | | | | | bufq. guenther pointed out this is one of the last things using the compat in struct buf that we still have from the disksort days. not anymore. ok miod@ guenther@
* Misplaced #endifmiod2015-02-071-4/+3
|
* Oh well, APM_USER_HIBERNATE_REQ being used in MI code, needs to be definedmiod2015-02-071-1/+2
| | | | in all MD apmvar.h.
* Do what the comments suggest and check for port-[ab]-ignore-cd properties,miod2015-02-051-4/+12
| | | | and if so, force soft carrier mode.
* By popular demand, put NFS, ipv6 and vlan support in sparc installation media.miod2015-01-211-1/+4
| | | | ok deraadt@
* Revert forcing a rachitic `c' slice size when the drive geometry is not known,miod2015-01-162-6/+2
| | | | | now that the disklabel code will reduce MAXDISKSIZE to the real size if a Sun label is found.
* disklabel_sun_to_bsd() will nicely set the disk size if it is zero, but it ismiod2015-01-161-2/+3
| | | | | | | | | | | | | | usually invoked after initdisklabel() which proactively changes a zero disk size to MAXDISKSIZE, causing this test to fail. Allow for MAXDISKSIZE too in that test. This makes spoofed disklabels of SMD disks have a proper `c' slice size. luna88k disklabel_om_to_bsd() is modified accordingly, to keep diffability, even though luna88k can't - to the best of my knowledge - sport SMD disk controllers. ok deraadt@ krw@
* Rework the disk label handling once again. Disk label is read at attach timemiod2015-01-152-100/+141
| | | | | | | | | | | because it teaches us the drive geometry, but from then on there is no reason not to implement disklabel spoof support and a proper DIOCGPDINFO ioctl. As a result, this makes disklabel -A now work on SMD disks. The drawback of this, is that, since native labels do not have a pcylinders value, the code will now always assume pcylinders == ncylinders + acylinders. (this ought to be the case by default for labels produced by SunOS format(8).)
* remove .Tn; from Jan Stary <hans at stare dot cz>schwarze2015-01-151-8/+6
|
* Don't forget to register event counter for VME interrupts.miod2015-01-141-1/+6
|
* When a read or write operation fails on a sector found on the bad block table,miod2015-01-142-2/+9
| | | | | | | | | | | be sure to adjust the IOPB data pointer before redirecting the I/O for this particular sector to the replacement location. Otherwise, the data pointer still points to the first sector of the I/O, which may not necessarily be the one which failed. (This is yet another 19 years old bug, making your filesystems self-destruct even faster than intended)
* When the outcome of the watchdog processing is a reset, do not bother checkingmiod2015-01-142-4/+8
| | | | | further pending requests, since they will be forcefully failed by the reset routine.
* Make the special buffer used for the few sector I/O at attach time a per-softcmiod2015-01-144-12/+16
| | | | member, rather than a global. No functional change.
* Make x[dy]c_e2str return a const char *.miod2015-01-142-32/+6
| | | | Remove obsolete comments in x[dy]dump().
* Remove pass-through ioctl for SMD disks (DIOSXDCMD). Nothing uses this, becausemiod2015-01-143-292/+2
| | | | noone wrote an equivalent of SunOS format(8) and noone ever will.
* Initialize d_type to DTYPE_SMD in the default label to avoid disklabel(8)miod2015-01-132-2/+4
| | | | asking for the device type upon labeling a freshly formatted disk.
* for the install: target, use cmp as a rough attempt for avoiding repeatedderaadt2015-01-131-3/+2
| | | | | | make install from Simon Nicolussi ok jsing tedu
* lager -> larger (no beer involved)miod2015-01-121-2/+2
|
* Fix two 19 years old (since day one) bug in bad144 sector reassignment logic:miod2015-01-122-9/+9
| | | | | | | | - when entering bad144 mode, correctly compute the actual C/H/S values for the logical block number. - when leaving bad144 mode and resuming normal I/O operation, when computing back the C/H/S values for the next logical block number, compute the sector number correctly.
* Remove orphaned defines.miod2015-01-111-6/+1
|
* switch prototype warnings to implicit-declaration warnings.tedu2015-01-111-2/+2
| | | | | | This should catch all the same bad cases, but be a little less aggravating in circumstances where a prototype isn't necessary ok deraadt
* When using sun4 PROM I/O routines, make sure we never attempt to transfer moremiod2015-01-112-17/+49
| | | | | | than the maximum DMA transfer size the PROM reports. Crank version to 2.9.
* Use the softc-specific function pointers for bcopy() and bzero() in iestart(),miod2015-01-111-3/+3
| | | | | instead of, well, bcopy and bzero. This lets ie@vme transmit packets instead of panicing due to memset() trying to use 32-bit stores on a device address.
* Make sure to initialize nbpg to a sensible value in bootxx, when running onmiod2015-01-111-13/+6
| | | | a sun4 system - the prom i/o routines depend on it.
* Unbreak sun4miod2015-01-111-2/+2
|
* unifdef INETtedu2014-12-225-15/+5
|
* Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterguenther2014-12-171-2/+2
| | | | | | doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
* delete archaic simplelock use.deraadt2014-12-172-25/+3
| | | | ok miod
* Use MAP_INHERIT_* for the 'inh' argument to the UMV_MAPFLAG() macro,guenther2014-12-151-2/+2
| | | | | | eliminating the must-be-kept-in-sync UVM_INH_* macros ok deraadt@ tedu@
* retire shutdown hooks; ok deraadt, krwmikeb2014-12-101-2/+1
|
* split the word ops into int and longs so things that care a lotdlg2014-12-041-13/+74
| | | | | | about types are happy. ok jsg@
* the per-cpu storage page does not need to be executable in thisderaadt2014-11-221-2/+5
| | | | | fashion. Anyways, we don't do MP here yet, so #ifdef it all away. with miod
* Be more careful draining the error register and reenabling traps in the sun4mmiod2014-11-221-2/+7
| | | | | NMI handler; apparently ROSS modules depend upon this to behave correctly. From NetBSD
* Driver for the ECC memory controller found on some sun4m (ss20), so thatmiod2014-11-228-11/+240
| | | | | recoverable memory errors no longer panic the kernel. From NetBSD but the manual page.
* spell PROT_EXEC correctlyderaadt2014-11-221-2/+2
|
* Move {recv,send}udp() out of net.c into their own file; to be used shortly.miod2014-11-191-2/+2
| | | | Add the new files to the few md libsa builds which require it.
* No boot block code shall include <string.h>.miod2014-11-191-2/+1
|
* (except for the arm architectures...) unify the way the ld.script isderaadt2014-11-181-3/+4
| | | | used and depended, mimicking new changes by guenther to amd64.
* Two additional POSIX_MADV_RANDOM conversionsderaadt2014-11-171-2/+2
|
* Replace a plethora of historical protection options with justderaadt2014-11-169-61/+61
| | | | | | | PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
* Don't let qlw attach to non-sun4m yet, as this driver currently depends uponmiod2014-10-252-4/+6
| | | | sun4m's iommu for bus_dma. (Guess what task just hit my todolist...)
* Add and enable qlw at sbus. Tested on QLGC,ispmiod2014-10-253-3/+6
|
* Correctly mask IE_ALLIE during sun4/4c/4e NMI; from NetBSDmiod2014-10-231-3/+3
|
* NetBSD revision 1.20 of pmap.h (from 1996) deleted license text that shoulddaniel2014-10-141-2/+9
| | | | | | | | | not have been removed (per the license conditions). Revert that removal of the BSD license text and conditions. Special thanks to Aaron Brown who also provided explicit permission to make this change. ok schwarze@, miod@