summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-12-24Normalize return values from various exit functions.Mike Larkin
Another diff from Stefan Kempf <sn.kempf at t-online.de>.
2015-12-24Make sure we don't overflow a page during vm_readpage/vm_writepage.Mike Larkin
Noticed over a month ago by Stefan Kempf <sn.kempf at t-online.de>, and I shamefully just got around to committing it. Thanks Stefan.
2015-12-24More adress -> addressmmcc
2015-12-24Argh. The other part the wrong diff was missing.Kenneth R Westerback
Use the size info in struct sr_boot_volume, and not the uninitialized info in the disklabel, when checking the GPT protective MBR. Now both GPT and MBR formatted softraid volumes actually boot. As a bonus add prototype for gpt_chk_mbr().
2015-12-23pledge "audio" code block must be !SMALL_KERNELTheo de Raadt
2015-12-23revert previous:Jasper Lievisse Adriaanse
---------------------------------------------------------------------- revision 1.961 date: 2015/12/22 13:33:26; author: sashan; state: Exp; lines: +153 -44; commitid: oBRhtWcDV0ThviVT; - yet another tiny step towards MP PF. This time we need to make sure statekey attached to packet stays around, while accepted packet is routed through IP stack. OK mpi@, henning@ ---------------------------------------------------------------------- there have been multiple reports of KASSERT(!pf_state_key_isvalid(sk)) being triggered without much effort, so back this out for now.
2015-12-23If PLEDGE_AUDIO is set, allow audio(4) ioctls necessaryAlexandre Ratchov
to use raw audio devices. ok deraadt, semarie
2015-12-23add aml_freevalue in a couple places, avoid storing a result thatJoshua Stein
would need to be freed in a couple other places with deraadt
2015-12-23Ooops. Wrong version of the diff committed, with reversed check forKenneth R Westerback
MBR/GPT. Problem found the hard way by Glenn Faustino on tech@
2015-12-23One "sbar" taskq is enough.Mark Kettenis
ok visa@
2015-12-23Drop unused goto label.Visa Hankala
2015-12-23Execution of the `sync' instruction is not supported by the T-Bus andVisa Hankala
raises a machine check exception. Do not report anything on console in that case, so that userland does not suffer too much. Diff from miod@
2015-12-23assign pointers NULL rather than 0mmcc
2015-12-22Make xs_setprop a bit more useful by removing property nodesMike Belopuhov
when NULL or zero length value was specified.
2015-12-22Implement a bus_dma(9) abstraction on top of Grant Table APIMike Belopuhov
2015-12-22spliting -> splittingmmcc
2015-12-22commited -> committedmmcc
2015-12-22Find OpenBSD disklabel on GPT partitioned softraid volumes. Now you canKenneth R Westerback
boot from such volumes to match being able to install to them. Problem spotted by jcs@, fix tested by rpe@, ok jsing@
2015-12-22Remove obsolete comment.Mark Kettenis
2015-12-22Re-add config includesStefan Fritsch
These got lost in previous commit. This broke ppp, nmea, msts, endrun. Found the hard way by David Coppa
2015-12-22The Apple SMC is implemented on a H8S/2117 chip. Communication with the chipMark Kettenis
becomes much more reliably if we pay attention to the IBF and OBF flags. This removes the need for excessive delays and retries, making operations complete in microseconds instead of seconds. This diff also removes flushing the read buffer after a read operations. This doesn't seem to be necessary, but we might need to put that back if the length of a reply changes for some keys. ok jung@, deraadt@
2015-12-22- yet another tiny step towards MP PF. This time we need to make sureAlexandr Nedvedicky
statekey attached to packet stays around, while accepted packet is routed through IP stack. OK mpi@, henning@
2015-12-22Do not return EEXIST if the same address is added twice.Martin Pieuchot
Reported by sebastisa@. ok sebasitia@, stsp@, florian@, vgross@
2015-12-21add virtio-console driverStefan Fritsch
This patch adds a new driver for use of virtio-console devices as ttys. It's still in an early state and not compiled by default, yet. Currently it is only wired into amd64. i386 is still missing. Discussed with uebayasi@, deraadt@
2015-12-21Move ppp, nmea, endrun, and msts prototypes to tty.hStefan Fritsch
Fix inconsistent arguments for pppopen/pppclose/pppstart. Use passed in argument p in pppopen instead of curproc. "Looks good to me" deraadt@
2015-12-21Goto a loop_end label rather than using a continue statement for anmmcc
error condition in an inner loop. Found with Coccinelle. Pointed out by tedu@, ok kettenis@ and deraadt@ about three months ago.
2015-12-21Introduce xen_intr_mask and xen_intr_unmask primitivesMike Belopuhov
Mask the event port during xen_intr_establish, but don't set the masked flag in the intsrc. By providing mask and unmask routines we allow the device to decide when to perform these actions. The port will still be unmasked during xen_intr_enable. This allows netfront to fulfil the intr_barrier pattern requirements fairly easily and at the same time should be sufficient for diskfront that doesn't need to fiddle with interrupt masking.
2015-12-21Cleanup hypercall subsystem type definesMike Belopuhov
2015-12-21Don't unmask the port in xen_intr_establishMike Belopuhov
2015-12-21Pass the destination and mask to rtable_mpath_reprio() in order to notMartin Pieuchot
use ``rt_node'' with ART.
2015-12-20size for free, sent and reminded by Mathieu. also delete null check.Ted Unangst
2015-12-20Advertise support for DRM version 1.4. We have support for all the necessaryMark Kettenis
features, and some code (such as the Xorg modesetting driver) actually checks the version. With this change the PCI-based probe method in that driver works. ok jsg@
2015-12-20Do not delay video(4) attachment if the device does not need to loadMartin Pieuchot
a firmware. Regression spotted by deraadt@
2015-12-20Simple free(9) sizes, from Matthieu <naabed AT poolp DOT org>.Martin Pieuchot
2015-12-19Replace 'arc4random() % x' by 'arc4random_uniform(x)'.tb
Diff by Matthew Martin, thanks! ok djm@, tedu@
2015-12-19make things fit, by skipping pcn* for now -- randomly firing a driver.Theo de Raadt
2015-12-19move to 5.9-betaTheo de Raadt
2015-12-19Remove code that has been unused ever since we removed the agp ioctl interface.Mark Kettenis
ok mpi@
2015-12-19Move agp_generic_enable() prototype to agpvar.h to unbreak the build onMark Kettenis
macppc.
2015-12-19Prevent GPU lockups with KMS & AGP-enable on Uninorth (G4) machines.Martin Pieuchot
Based on linux commit 5613beb46d54da6ef7f1c4589e9f2e60eeb10721 found by jsg@. KMS is now usable on Uninorth machines but X11 output is still corrupted. ok kettenis@
2015-12-19Enable agp(4), this makes X11 usable on my Dual G5 with radeondrm(4).Martin Pieuchot
ok kettenis@
2015-12-19Do not match Uninorth bridges until we have a working KMS with AGPMartin Pieuchot
support for G4 machines. This allows us to enable agp(4) again for G5 machines. ok kettenis@
2015-12-19Make carp_output() mpsafe.Martin Pieuchot
This is needed in order to fully unlock ARP processing with carp(4) interfaces as found the hardway by sthen@. ok sthen@, dlg@
2015-12-19Add xs_setprop to set device propertiesMike Belopuhov
2015-12-19Fixup a few bugs in xen_intr_{establish,disestablish}Mike Belopuhov
xen_intr_establish was using a variable that hasn't got its value updated in the supplementary check for event channel port unmasking. xen_intr_disestablish didn't save and correctly check the return value of xen_lookup_intsrc call and was incorrectly indexing into the pending event channel port bitmap.
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18Fix SO_REUSE* flags effects when binding multicast addresses. NoVincent Gross
regression observed on avahi. ok benno@
2015-12-18Fix urtw(4) on big-endian architectures. Patch by Cedric Tessier.Stefan Sperling
Tested by Cedric on macppc/i386, and by myself on macppc.
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18Remove two error-on-NULL conditions for allocations that can't fail.mmcc
ok visa@