summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-06-12add missing arg to a printf callJonathan Gray
ok oga@
2010-06-12Add missing arg to a printf call.Jonathan Gray
ok damien@
2010-06-11Restore an unusual XS_SENSE semantic that inadvertantly got lostKenneth R Westerback
in the great re-write. If the scsi device *_interpret_sense() function returns 0 that means there was no error. Fixes restore(8) problems seen on certain tape drives. Found and fix tested by Percey Piper. Suggestions from Matthew Dempsky. Thanks! ok dlg@
2010-06-10Declare safepri at the MD level on each platform, so that the kern_synch.cTheo de Raadt
does not have to deal with it as a common. Some platforms may be missed by this commit... if you spot one, fix it the same way. ok miod
2010-06-10fix typos in comments: lineair -> linear.Thordur I. Bjornsson
2010-06-10the pagedaemon sleeps on uvm.pagedaemon notThordur I. Bjornsson
uvm.pagedaemon_proc, do the wakeup on the right ident. this had been fixed, but the fix got backed out during The Big Backout. ok oga@
2010-06-10vscsi just works, as a proof the debug macro is wrong and was never used,Jonathan Armani
just remove it. "vscsi is kinda perfect" "you should delete it" dlg@
2010-06-09Remove the CRYPTO_ALGORITHM_ALL define, fixup accordinglyThordur I. Bjornsson
and make the loop invartiants <= CRYPTO_ALGORITHM_MAX Do this also for the CRK_ALGORITHM_MAX this also fixes the a bug that caused us to skip CRK_DH_COMPUTE_KEY. ok deraadt@
2010-06-09Do not set time 100 years in the future if the time read is beforeMiod Vallat
POSIX_BASE_YEAR (1970) because the clock's base year is before that year as well (as found on sparc which use 1968 as their base year); this allows clocks with dead batteries to ``correctly'' report the current date as in year 1968, instead of year 2068 which causes a 32 bit time_t wraparound in year 1931. Found the hard way by Philippe Meunier, ok deraadt@
2010-06-09Move declaration of cn_tab from dev/cons.c to dev/cninit.c, or appropriateMiod Vallat
md files for ports which do not use dev/cninit.c. This gets rid of a common at kernel link time. feedback drahn@ ok deraadt@
2010-06-09Wire up device nodes for disk mapper.Joel Sing
ok deraadt@
2010-06-09Teach FFS mounts about disklabel UIDs. This allows file systems to beJoel Sing
mounted by specifying a disklabel UID followed by a dot and a partition. For example: mount -t ffs 0123456789abcdef.a /mnt ok otto@
2010-06-09Fix the pop operation to make PHP work again. When popping the last labelClaudio Jeker
by a pop operation we need to forward the packet to the specified nexthop as is. This is done by calling the interface output routine directly. This is different to the local operation since that one injects the packets into ip_input() via netisr. OK michele
2010-06-09Move the prototype for uvm_wait() to uvm_extern.h and removeThordur I. Bjornsson
uvm_pdaemon.h has it was only holding that one prototype. OK art@, oga@, miod@, deraadt@
2010-06-08properly enable vscsi, fix incorrect majorTodd T. Fries
ok jasper@ (also compile tested)
2010-06-08Introduce a diskmap pseudo device which allows userland to open a diskJoel Sing
specified via its disklabel UID. The mapping from the disklabel UID to the real disk and the opening of the resulting device is performed atomically using a single ioctl. ok krw@ deraadt@
2010-06-08Add missing function prototype.Joel Sing
2010-06-08in viac3_crypto_setup(), if we fail to get a crypto driverid,Thordur I. Bjornsson
free the softc before we return. While here, make the allocation code a bit prettier too. OK deraadt@
2010-06-07Fix various problems of auich on SiS 7012 based chips:Alexandre Ratchov
- rework auich_halt_pipe() and use it to ensure AUICH_RR is set only after DMA is halted (spec says to do so) - rework auich_calibrate(): clear interrupt and event bits in AUICH_STS and ensure CIV counter is not changed. - in the interrupt handler, set LVI to (qptr - 1) rather than the max value (bug introduced by previous commit) All fixes are from Christopher Zimmermann <madroach at zakweb.de>, Thanks! tested on two different intel-based auich devices, ok jakemsr
2010-06-07Sync with GENERIC and SUN4.Miod Vallat
2010-06-07partial backout of 1.81 as invoking standby in shutdownJonathan Gray
breaks at least socppc and armish
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-07Replace some handrolled instances of m_getptr() with that function, whichBret Lambert
also gets a bit of a KNF scrubbing at claudio@'s insistence. Shaves some bytes from the kernel as well. tested by phessler@ and zinovnik@, thanks ok claudio@
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-07Proper range check in radeon_emit_packets(); ok oga@Miod Vallat
2010-06-07no need to include <sys/endian.h> twice!Damien Bergamini
2010-06-07tweak ieee80211_decap():Damien Bergamini
instead of copying the 802.11 header on the stack and building the ethernet header directly in the mbuf, build the ethernet header on the stack directly from the 802.11 header in the mbuf and copy the ethernet header to the mbuf after stripping the 802.11 header. makes the code easier to read/understand, especially, it is now explicit what is being put in the ether_type field. diff from Matthew Dempsky (matthew at dempsky dot org) moved ieee80211_align_mbuf() under #ifdef __STRICT_ALIGNMENT while i'm here.
2010-06-07Break pxaudc into xscale and MD pieces so that palm and zaurus can correctlyDale Rahn
share the driver with different GPIOs/IRQs Diff from marex via jasper.
2010-06-07unfortunately classful routing isn't 100% dead, mostly thanks to ancientHenning Brauer
netboot methods using rarp, thus only learning their IP address without mask. And of course the next step is a broadcast - which goes to the broadcast address calculated classful. *sigh*. PR6382 instead of storing a second broadcast address per ifaddr as we used to figure out wether we're dealing with a classful broadcast on the fly. the math is extremely cheap and all my previous profilings showed that cpu cycles are basically free, we're constrained by memory access. excellent analysis by Pascal Lalonde <plalonde at overnet.qc.ca> who also submitted the PR. claudio ok
2010-06-07There is no reason to allow unicast IPv4 mapped IPv6 addresses in tcpClaudio Jeker
connect() calls. Our network stack does not allow any v4 mapped addresses so there is no need to allow them in connect(). Found after discussion with Henning. OK deraadt@
2010-06-07update url in comment; Nikolai FetissovStuart Henderson
2010-06-07space nit and use nitems().Thordur I. Bjornsson
ok kettenis@
2010-06-06- add more comments to sh3_vector_tlbmiss (no binary change).Jasper Lievisse Adriaanse
- arrange for data blocks to start on 32B cache line boundary. from uwe@netbsd ok miod@ (with an indentation suggestion)
2010-06-06Use usb_lookup() instead of rolling our own. ok armani@ fabien@Miod Vallat
2010-06-06use .L* for local labels and other small cosmeticsJasper Lievisse Adriaanse
from uwe@netbsd ok miod@
2010-06-06simething -> somethingMiod Vallat
2010-06-06Nuke common.Miod Vallat
2010-06-06Kill unused sio_intr_count.Miod Vallat
2010-06-06Avoid computing a symbol with arithmetic involving a common, modern binutilsMiod Vallat
complain about this. From NetBSD
2010-06-06typo in commentMiod Vallat
2010-06-05change sign extension such that we do not rely on >> being anDamien Bergamini
arithmetic shift on signed integers.
2010-06-05- fix athn_set_key() on big-endian machines (function is not used yet)Damien Bergamini
- change sign extension such that we do not rely on >> being an arithmetic shift on signed integers - various changes to AR9003 code, fix Tx path, enable Tx IQ calibration
2010-06-05when rekeying the GTK/IGTK, send the new key to clients, not theDamien Bergamini
old one. found after reading a post by Nathanael Rensen to tech@
2010-06-05there is no need to copy the full 802.11 header in ieee80211_decap()Damien Bergamini
as we do not use any field after i_addr4. slightly modified version of a diff from Matthew Dempsky (matthew at dempsky dot org), used MIN instead of min.
2010-06-05'operational' takes a single 'n'Damien Bergamini
2010-06-05Pass signal handlers a more clean FPU state (ie. the right modes) andTheo de Raadt
properly restore it in sigreturn. Lots of deep digging by matthieu, otto, guenther, kettenis and I.. and I am certain I forgot some other people. ok kettenis otto matthieu
2010-06-04Don't warn about not knowing what the bus clock is on core i7/i5/i3Jonathan Gray
as the high/low guessing won't be done on these processors due to MSR differences.
2010-06-04Missed this file in previous commit; previous commit message was:Bret Lambert
rt_timer_queue_destroy() did not actually destroy, leading to a potential memory leak due to misleading nomenclature. Change it to actually destroy, not just clean, the the rt_timer_queue passed to it and adjust the correct caller accordingly (i.e., no need to free the mem on our own now). As a bonus, this gets rid of one of the ridiculous R_Malloc/Bzero/Free cycles, and lets us sneak another bzero -> M_ZERO conversion in. ok claudio@
2010-06-04rt_timer_queue_destroy() did not actually destroy, leading to a potentialBret Lambert
memory leak due to misleading nomenclature. Change it to actually destroy, not just clean, the the rt_timer_queue passed to it and adjust the correct caller accordingly (i.e., no need to free the mem on our own now). As a bonus, this gets rid of one of the ridiculous R_Malloc/Bzero/Free cycles, and lets us sneak another bzero -> M_ZERO conversion in. ok claudio@