summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-12-21WSMOUSE_INPUT_WSMOUSED_CLOSE not used anymore.Alexandr Shadchin
ok mpi@
2014-12-21Prevent writing to the kernel area via the direct map. We do this by paddingMike Larkin
the end of the kernel area to 2MB, so that the direct map pages can then have the W permission removed (X permission was already removed in a previous diff). This creates a VA hole at the end of bss, so adjust for that since that's where symbols get loaded by the bootloader (for now, map that region RO until the boot loader can be updated to place the symbols at "end" instead of "end of bss"). with help from and ok deraadt@
2014-12-21Always clear a port reset feature after setting it, or at least try to.Martin Pieuchot
Otherwise we might leave a port in an unwanted state. Found while investigating timeout issues on xhci(4).
2014-12-21Various transfer improvements/fixes.Martin Pieuchot
Chain TRBs when submitting bulk or interrupt transfers with a length bigger than the Maxium Packet Size of the endpoint. Append a supplementary TRB if a zero length packet is required. While here, set the flags of each TRB at once. Even if this driver implementation fills the first TRB of a chain last, be safe and make sure the hardware wont miss any flag. Note that with this change, DMA sync operations might not cover the whole chain, just like for control transfers, if the ring is starting over. Previous version of this diff tested by Peter N. M. Hansteen, thanks!
2014-12-21Use a bitmask when dumping TRB flags. No change in !XHCI_DEBUG.Martin Pieuchot
2014-12-21<sys/endian.h> needs <sys/cdefs.h>Philip Guenther
found previously by someone whose email I've lost; rediscovered by miod@ ok millert@ deraadt@
2014-12-20Replacing <machine/endian.h> with <sys/endian.h> does not imply removingMiod Vallat
<sys/types.h>. kthxbye
2014-12-20Replace switch workq with taskq.Kenneth R Westerback
Diff from blambert@, double ok@ kettenis.
2014-12-20Zap a sneaky trailing blank that was hiding in plain view.Kenneth R Westerback
2014-12-20Zap local variable that shadows another local variable. Fixes a panic causedMark Kettenis
by passing random stack garbage as the size to free(9). From David Imhoff
2014-12-20Zap a bunch of leading/trailing whitespace.Kenneth R Westerback
2014-12-20Cleanup vmt(4) by changing an ugly if statement for received commandsReyk Floeter
into a table of callbacks. Additionally, turn printfs into DPRINTFs to make the driver less chatty by default. OK deraadt@
2014-12-20openbsd rcisdTed Unangst
2014-12-19Use <sys/endian.h> instead of <machine/endian.h>Philip Guenther
ok dlg@ mpi@ bcook@ millert@ miod@
2014-12-19sync with libc, using brnz,pt instead, should be betterTheo de Raadt
ok kettenis
2014-12-19Do not report an EDQUOT "Disk quota exceeded" error from the routingAlexander Bluhm
code. Instead generate an ENOBUFS "No buffer space available" error at the malloc(9) failure in rt_setgate(9) and propagate it. OK mpi@
2014-12-19multiline string literals aren't really a thing. just smush a few stringsTed Unangst
together.
2014-12-19remove ipw. it wasn't included in generic, but nobody complained,Ted Unangst
indicating probably nobody has one of these in amd64 capable hardware. spotted by krw. ok kettenis krw
2014-12-19make the code look more like libc by changing Transform to take the stateTed Unangst
ok millert
2014-12-19bcopy to memcpy. ok deraadt millertTed Unangst
2014-12-19unifdef INET in net code as a precursor to removing the pretend option.Ted Unangst
long live the one true internet. ok henning mikeb
2014-12-19Fix tree breakage due to unused variable after last commit.Kenneth R Westerback
2014-12-19Change scan and auth+assoc workq entries to taskq entries.Kenneth R Westerback
Identical diff originally and independently developed by blambert@.
2014-12-19shuffle function declarations a bit; stylistic changes only.Reyk Floeter
2014-12-19No need to include sys/types.h when sys/param.h is already included.Reyk Floeter
While here, sort includes a bit. No functional change.
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19oops, forgot rndvar.hTheo de Raadt
2014-12-19Use taskq rather than workq to remove unwanted alias.Kenneth R Westerback
ok mikeb kettenis (for earlier version)
2014-12-19Move cbus.c, cbusvar.h, and pcex.c to new 'cbus' directory, to gatherKenji Aoyama
'C-bus' device drivers in it. More devices on cbus(4) will be added, hopefully :-) ok miod@
2014-12-19Support source-hash and random with tables and dynifs; not just pools.Reyk Floeter
This finally allows to use source-hash for dynamic loadbalancing, eg. "rdr-to <hosts> source-hash", instead of just round-robin and least-states. An older pre-siphash version of this diff was tested by many people. OK tedu@ benno@
2014-12-19Comment is no longer true, remove it.Ryan Thomas McBride
2014-12-19remove hash.h. no longer needed. ok reykTed Unangst
2014-12-19Remove an unused sys/hash.h include from db_structinfo.cReyk Floeter
(this file is only compiled with "option DDB_STRUCT"). ok guenther@
2014-12-19lonely bcopy called me by nameTheo de Raadt
2014-12-19another handful of bcopy -> memcpy because there is no overlapTheo de Raadt
2014-12-19start retiring the nointr allocator. specify PR_WAITOK as a flag as aTed Unangst
marker for which pools are not interrupt safe. ok dlg
2014-12-19if you really must look inside the pool to decide if you've calledTed Unangst
pool_init already, the pr_size field is the least worst field to peek at.
2014-12-19add messages to #error so we know what's what (and so unifdef doesn't poop)Ted Unangst
2014-12-19Make use of m_defrag() in re_encap().Brad Smith
2014-12-19rename buffer to digest, more clear. ok deraadtTed Unangst
2014-12-19convert bcopy/zero to memcpy. ok deraadt djmTed Unangst
2014-12-19timestamp empty pages, and only free them if theyve been idle for at leastDavid Gwynne
a second. this basically brings back the functionality that was trimmed in r1.53, except this version uses ticks instead of very slow hardware clock reads. ok tedu@
2014-12-19the last commit changed LIST_INSERT_HEAD to TAILQ_INSERT_TAIL cos theDavid Gwynne
latter is cheaper, but i forgot to change the thing that pulls pages off those lists to match the change in direction. the page lists went from LIFO to FIFO. this changes pool_update_curpage to use TAILQ_LAST so we go back to LIFO. pointed out by and ok tedu@
2014-12-19Rearrange mostly vmxnet3_init() to look like other Ethernet drivers.Brad Smith
ok reyk@
2014-12-19sha512 produces enough output, we can simplify extraction by not looping.Ted Unangst
ok deraadt djm
2014-12-19replace the page LISTS with page TAILQs. this will let me pull pages fromDavid Gwynne
either end of the lists cheaply. ok kettenis@ tedu@
2014-12-18remove two useless and unused hash penalty definesTed Unangst
2014-12-18obvious non-overlap bcopy -> memcpyTheo de Raadt
2014-12-18convert one hot looking bcopy to memcpyTed Unangst
2014-12-18delete a whole mess of unnecessary caddr_t castsTed Unangst