summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-01-20CMASK was only a CSRGism. It was only used in the kernel and ftpd, onceTheo de Raadt
each, never in portable software. Mop it up. ok guenther, tested in ports tree by sthen
2015-01-20Prevent tables referenced by rules in anchors from getting disabled.Mike Belopuhov
Analysis and patch by Richard Kojedzinszky, thanks! ok henning
2015-01-20Merge two copies of the same dma code into one file and sync the headers.Martin Pieuchot
ok kettenis@
2015-01-20Various cleanups. Explicitly include <sys/atomic.h>, Use pmap_remove_pg()Martin Pieuchot
for the kernel pmap and kill pmap_kremove_pg(). Finally guard the hash lock code under "MULTIPROCESSOR" to explicit which part of the code received some MP love. ok kettenis@
2015-01-20Revert some $OpenBSD$ additions about which there are doubts.Kenneth R Westerback
Suggested by deraadt@
2015-01-20Make ix(4) work on strict alignment architectures. The Intel networkingMark Kettenis
hardware is fairly retarded. While it allows receive buffers with an ETHER_ALIGN offset, it only allows the size of the buffers to be specified in multiples of 1K. This means that if we want to use standard mbuf clusters we will waste 1024 - ETHER_ALIGN bytes per cluster, which is a lot for the 2K clusters we use now. Compromise a bit by using 4K clusters on strict alignment architectures and tell the hardware to use 3K of those, reducing the spillage a bit. While this isn't optimal, at least on sparc64 where we have 8K pages, the pool page allocation overhead should be the same as on amd64/i386 where we have 4K pages and continue to use 2K mbuf clusters. ok mikeb@, dlg@
2015-01-20Check for out-of-range indices when searching the default dac and adc.Alexandre Ratchov
Fix from Alexey Suslikov <alexey.suslikov at gmail.com>. Thanks! tested by many, ok armani
2015-01-20rework the audio key handling to allocate a message to send to theDavid Gwynne
task, rather than abusing task arguments to carry long values around. this is unreliable, but so was the previous mechanism, just in a different way. if you're so low on memory that you cant change the volume, you probably have other more important problems going on too. tested by jim smith
2015-01-20Fix size of the bcopy when extracting the MAC address.Brad Smith
From FreeBSD
2015-01-20Missing $OpenBSD$'s.Kenneth R Westerback
ok deraadt@
2015-01-20Remove use of the link change interrupt handling, not all controllersBrad Smith
support this interrupt. Link state changes are noticed via the PHY status change callback or via the timeout for re_tick(). From FreeBSD
2015-01-20Some fixes for handling link state changes.Brad Smith
2015-01-20And the variable too.Brad Smith
2015-01-20Back out a chunk of rev 1.34 that wasn't supposed to go in with theBrad Smith
capitalization corrections.
2015-01-20printf wasn't supposed to go in.Brad Smith
2015-01-20#include <sys/syslimits.h> to allow operation without requiring the noiseTheo de Raadt
of <sys/param.h>
2015-01-19Prefer linux_sockaddr over osockaddr, so the latter can go away.Philip Guenther
sys_socket() supports SOCK_{CLOEXEC,NONBLOCK} now, so build on that. doaccept() supports the non-inheriting-of-O_NONBLOCK, so build on that. Merge compat_sys_{accept,send,recv}() into their only callers. Lie a little and use struct sockaddr in the linux socket syscall args when it's a return argument to avoid a bunch a casts. Delete many other unnecessary sockaddr casts verified with a curl Linux binary
2015-01-19back it out properlyTheo de Raadt
2015-01-19never tested with a make releaseTheo de Raadt
2015-01-19Oops, missed the new #include when manually applying the diff fromPhilip Guenther
Helg (xx404 (at) msn.com)
2015-01-19`wellspring' Apple keyboards found on Macbook Air need slightly differentMiod Vallat
processing for Fn-key chords. From William Orr <will@worrbase.com>
2015-01-19Fix bracing in ASSERT_VP_ISLOCKED(vp) macro to not always panic()Philip Guenther
From Helg (xx404 (at) msn.com)
2015-01-19Move doaccept() declaration from its .c file to sys/socketvar.h for usePhilip Guenther
by compat/linux
2015-01-19Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len addedPhilip Guenther
ok krw@ bluhm@ deraadt@
2015-01-19Remove dead store causing clang to warn; dhillMiod Vallat
2015-01-19use SYMLOOP_MAX rather than MAXSYMLINKSTheo de Raadt
2015-01-19mikeb points out that 'struct ipsec_policy' can also be hidden by _KERNELTheo de Raadt
2015-01-19SYMLOOP_MAX == MAXSYMLINKS, so use SYMLOOP_MAXTheo de Raadt
2015-01-19First step of hiding many kernel-only parts of <netinet/ip_ipsp.h>Theo de Raadt
under _KERNEL, and adjust the one consumer (netstat) so that it requests the exposure. Will take a few more rounds to get this right. ok mikeb
2015-01-19Make use of an msr available on recent Intel processors to obtain theJonathan Gray
maximum supported temperature, Tj(Max). As the temperature values are relative to this value this should make the sensor values more accurate. From Simon Mages.
2015-01-19Make some $OpenBSD$ lines prettier/standardier by eliminatingKenneth R Westerback
superflous '*' after '/*' and adding blank after terminating '$'. Also eases parsing of the lines by simple awk scripts. Aesthetic approval from tedu@.
2015-01-19<netinet6/in6_ifattach.h> is not needed here.Martin Pieuchot
2015-01-19pass the size of the softc to free.David Gwynne
ok deraadt@
2015-01-19white space fixes. no binary change.David Gwynne
2015-01-19unneccessary cmask variable; ok guentherTheo de Raadt
2015-01-18Back out previous. HOST_NAME_MAX is only defined for newer POSIXTodd C. Miller
revisions so it is not safe to define MAXHOSTNAMELEN in terms of it.
2015-01-18Forward declare 'struct file' so that libkvm and others that indirectly pullPhilip Guenther
in sys/uio.h with _KERNEL defined don't warn. ok deraadt@
2015-01-18Do not trust the content of event TRBs coming from the hardware andMartin Pieuchot
maintain a list of possibly submitted commands.
2015-01-18When restoring spsr values when handling traps use spsr_fsxc insteadJonathan Gray
of spsr_all so all the bits are restored. Using the msr instruction with spsr_all is treated the same as spsr_fc and does not include the status and extension fields (bits 23:8). This fixes the problem of some i.MX6 machines powering up with the big endian bit set in the extension field causing them to crash on returning from the first interrupt. From NetBSD.
2015-01-18Switch some uses of msr that only deal with interrupts/mode to useJonathan Gray
just the control field ('c' bits 7:0) instead of 'all' which includes the flags field ('f' bits 31:24) which isn't modified.
2015-01-18Do not even try to dereference a NULL pointer.Martin Pieuchot
Found the hard way by Peter N. M. Hansteen. ok claudio@, phessler@
2015-01-18Complete synchronous abort method modeled after the existing ones.Martin Pieuchot
Because our USB stack wants the aborted xfer to be removed from the pipe during abort(), we have to sleep in the abort function. Regarding the xHCI process, when a TD is being aborted, we simply stop the endpoint and then move the dequeue pointer past its last TRB. This is fairly simple for the moment since only one xfer can be pending on a given pipe.
2015-01-18Do not try to free xfers before aborting the pipes, otherwise a clownMartin Pieuchot
might eat you.
2015-01-18Add commented-out necsb(4) and audio(4) configuration to GENERIC.Kenji Aoyama
2015-01-18Revert 1.166 (but keep the bufq_wait() interface change), for this is wrongMiod Vallat
and the bufq pointer might be NULL at the time it is `saved'. Found the hard way on sparc due to the limited kva, with all disk active processes ending up sleeping on "buf_needva". ok kettenis@ krw@
2015-01-18The 'mrs' instruction only deals with the whole register withoutJonathan Gray
masking. Remove the use of cpsr_all/spsr_all with 'mrs' and just use the register names. This matches the arm docs and avoids confusion as cpsr_all/spsr_all don't include bits 23->8 when used with the 'msr' instruction but do with 'mrs'.
2015-01-18Since we are no longer resetting rings when a Babble or Stall conditionMartin Pieuchot
is detected, simply keep track of the faulty xfer instead of completing all the pending ones. Fix a race condition where we could end up aborting a freshly enqueued xfer when two different threads are submitting control transfers (i.e. usbdevs(8) and a kernel driver).
2015-01-18The 'mrs' instruction only deals with the whole register withoutJonathan Gray
masking. Remove the use of cpsr_all/spsr_all with 'mrs' and just use the register names. This matches the arm docs and avoids confusion as cpsr_all/spsr_all don't include bits 23->8 when used with the 'msr' instruction but do with 'mrs'.
2015-01-18unifdef IPKDB. These codepaths are holdouts from NetBSD code and areJonathan Gray
not used.
2015-01-18Per POSIX, <sys/socket.h> needs to expose struct iovec, and may do soPhilip Guenther
by pulling in <sys/uio.h>, so do so. Remove some stuff that we can trust <sys/uio.h> to also provide, like cdefs.h, _types.h, and exposing size_t and ssize_t pointed out by naddy@ ok deraadt@