summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2011-07-03a_sym is an integer not a pointer so check == 0, not == NULL. SomeKenneth R Westerback
off_t casts to parameters for pread(). Whitespace and comment sync. All changes made long ago in libc/gen/nlist.c. More delta reduction.
2011-07-03Add blank line to keep consistent spacing. From brad@YASUOKA Masahiko
2011-07-03Rewrite the multicast handling for OpenBSD. From brad@YASUOKA Masahiko
ok and tested yasuoka@
2011-07-03- add missing #include "bpfilter.h" on if_cnmac.YASUOKA Masahiko
- delete #include <sys/cdefs.h> because it's unnecessary. ok brad@
2011-07-03Fix boot dump on bigmem machines.Owain Ainsworth
Allocate a bouncebuffer at boot time and bounce all pages over 0xffffffff through it. ``looks right but not tested'' miod@, ok krw (who watched me test it on his monster laptop.
2011-07-03in the ironlake interrupt handler, do not do unneccesary registerTheo de Raadt
accesses. we don't need to disable the interrupt on the chip. if the interrupt isn't for us, then we should not write to lots of registers, either. ok oga, tested by lots of people in snapshots
2011-07-03ANSI-fy, de-register as was done in lib/gen/nlist.c years ago. Reduces delta toKenneth R Westerback
make differences obvious.
2011-07-03Add more useful $OpenBSD$ tag.Kenneth R Westerback
2011-07-03Add missing $OpenBSD $ tag.Kenneth R Westerback
2011-07-03ucom(4) did not understand the last-close semantics. repair that, andTheo de Raadt
add a bit more locking in the open function. originally spotted by matthew, ok matthew miod
2011-07-03Change name of pointer to partition from pl to pp, as is used everywhere ↵Kenneth R Westerback
else, No functional change.
2011-07-03reduce kernel compile time dramaticallyHenning Brauer
(you don't need to fix this file for it to compile. oups. forgotten in the last commit)
2011-07-03garbage collect unused parameter to PFLOG_PACKETHenning Brauer
i found this somewhere in my forest, I don't really remember writing it, the context indicates I did this in iceland... getting this is to make a 1000+ lines diff less painful (how do I always end up with those)
2011-07-03endodoify UVM_CNT too.Owain Ainsworth
``beat it'' tedu@ the deleteotron
2011-07-03Rip out and burn support for UVM_HIST.Owain Ainsworth
The vm hackers don't use it, don't maintain it and have to look at it all the time. About time this 800 lines of code hit /dev/null. ``never liked it'' tedu@. ariane@ was very happy when i told her i wrote this diff.
2011-07-03Do as all other direct archs do and map contig memory through the directOwain Ainsworth
map in bus_dmamem_map(). ok miod@
2011-07-03correctify NULL 0 confusionTed Unangst
2011-07-03wsdisplay should use wsdisplaypoll not ttpoll.Nicholas Marriott
ok miod deraadt
2011-07-03Fix return values of wsdisplaykqfilter and move some code so it matchesNicholas Marriott
wsdisplaypoll. ok miod deraadt
2011-07-03Cleanup vnd(4) a bit now that it only has one mode of operation andMatthew Dempsky
uses standard disk device numbering. ok deraadt@
2011-07-03Refactor the fragment handling in pf_setup_pdesc() so that AF_INETClaudio Jeker
and AF_INET6 are doing the fragment handling the same way. Makes code more readable. With and OK bluhm@
2011-07-03avoid void * pointer arithmeticDavid Hill
OK claudio@
2011-07-03The UVM_STRAT defines have been unused since pmemrange was commited.Owain Ainsworth
They may die now. ``kill it'' thib@
2011-07-03Fix vnd(4) support for read-only files. We can't clear sc_flagsMatthew Dempsky
before closing the vnode, because VNDRW() checks for the VNF_READONLY bit and the vnode layer doesn't like it when you close a read-only vnode with FREAD|FWRITE. ok deraadt@
2011-07-03LINK_STATE_IS_UP() should consider LINK_STATE_UNKNOWN as an up state.Claudio Jeker
This is now possible because carp no longer uses LINK_STATE_UNKNOWN for a state that is considered down. This will simplify a lot of code. OK mpf@ mcbride@ henning@
2011-07-03Do not use LINK_STATE_UNKNOWN for the INIT state. LINK_STATE_UNKNOWN hasClaudio Jeker
a special meaning and should only be set if the link state is not known because it is considered as being up. Use LINK_STATE_INVALID instead. OK mpf@ mcbride@ henning@
2011-07-03Add a SIMPLEQ_REMOVE_NEXT() macro analogous to SLIST_REMOVE_NEXT().Matthew Dempsky
ok krw@
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
2011-07-03Call config_detach() on the child scsibus in sr_detach().Matthew Dempsky
ok jsing@
2011-07-03slight knf (particularly the function decls) so i dont get too distractedDavid Gwynne
while reading. ok henning@ jsing@ tedu@ marco@ bluhm@ krw@
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-07-02Per recommandation in the the sparc docs, use unlocked reads whenPhilip Guenthe
spinning on a contended lock. ok kettenis@
2011-07-02Cleanup the softraid boot probe code. Rename the rather poorly namedJoel Sing
sr_metadata_list struct to sr_boot_chunk and use a sr_metadata struct rather than an array of u_int8_t when storing the metadata. Also rename some variables to keep the boot volume/boot chunk consistency. This diff also fixes a memory leak where the structures were never freed for key disks. Otherwise there should be no functional change. ok marco@
2011-07-02Use getvnode() instead of implementing our own file descriptor handlingJoel Sing
code. This gets us some additional validation and correct reference counting. Issue spotted by matthew@ ok thib@
2011-07-02Getting a disklabel to extract d_secsize to initialize a variable that is thenKenneth R Westerback
re-initialized before use is silly. ffs shouldn't know of or worry about the physical disk sector size. ok thib@
2011-07-02rename VFSDEBUG to VFLCKDEBUG;Thordur I. Bjornsson
prompted by tedu@
2011-07-02gc in_interfaces. doesnt seem to do anything except get incremented.David Gwynne
ok henning@ deraadt@
2011-07-01msi interrupts working on mfi(4)Theo de Raadt
2011-07-01The pf_headers union may also contain a mld_hdr or nd_neighbor_solicitAlexander Bluhm
struct. List those types explicitly to make sure that the union contains enough memory. Before we were just lucky. ok henning@
2011-06-30ansi, no binary changeJonathan Gray
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
subr_disk.c. For now just the MI disk drivers. ok deraadt@, krw@; jsing@ liked the approach too
2011-06-30finish ansi in uvm. ok ariane ogaTed Unangst
2011-06-30Add DUID support for ext2fs mounts.Joel Sing
Initial diff from and tested by Luca Corti - thanks!
2011-06-30remove compat_35 filesTed Unangst
2011-06-30syncTed Unangst
2011-06-30compat_35 has not been enabled for sometime, time to remove itTed Unangst
2011-06-29Replace all instances of "scsibus* at hba?" with a single "scsibus* atMatthew Dempsky
scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.
2011-06-29mark S8 encoding as emulated; only S16LE and U8 are natively supportedChristian Weisgerber
ok ratchov@
2011-06-29iop(4) is not a SCSI controller, so it shouldn't have the scsiMatthew Dempsky
attribute.
2011-06-29dmesg@ says pss has never been seen in the wild and the manpage says itTed Unangst
doesn't work. goodbye. ok miod