summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-07-11Enable the interrupt routine.Paul Irofti
Still work in progress, but the interrupt routine can be enabled now. I tried to match the structure of the other drivers as close as possible: - add octhci_intr1() routine - modify octhci_intr() to call octhci_intr1() - schedule the actual work for the soft interrupt - add octhci_root_intr_{transfer,start,abort} routines - fill in the octhci_poll() routine - use the same style for return directives dmesg progress: octhci0 at iobus0 irq 56: core version 2 pass 3.5 usb0 at octhci0: USB revision 2.0 uhub0 at usb0 " octHCI root hub" rev 2.00/1.00 addr 1
2014-07-11introduce the IFXF_AUTOCONF6 interface flag which controls wether weHenning Brauer
accept rtadvs on that interface. the global net.inet6.ip6.accept_rtadv sysctl just doesn't cut it, even tho the spec wants that - but in their little absurd world, a host just has one interface by definition anyway... the sysctlgoes away. lots of head scratching, brain cell elemination etc from bluhm benno stsp florian, excitement from simon and todd, ok bluhm stsp benno florian
2014-07-11Remove redundant mask check in the interrupt routine.Paul Irofti
We return earlier if the interrupt is masked. Discussed with and okay mpi@
2014-07-11Chuck Cranor rescinded clauses in his licenseJonathan Gray
on the 2nd of February 2011 in NetBSD. http://marc.info/?l=netbsd-source-changes&m=129658899212732&w=2 http://marc.info/?l=netbsd-source-changes&m=129659095515558&w=2 http://marc.info/?l=netbsd-source-changes&m=129659157916514&w=2 http://marc.info/?l=netbsd-source-changes&m=129665962324372&w=2 http://marc.info/?l=netbsd-source-changes&m=129666033625342&w=2 http://marc.info/?l=netbsd-source-changes&m=129666052825545&w=2 http://marc.info/?l=netbsd-source-changes&m=129666922906480&w=2 http://marc.info/?l=netbsd-source-changes&m=129667725518082&w=2
2014-07-11Use uint32_t instead of uint16_t for pr_timeout_sec of structYASUOKA Masahiko
pipex_session_req.
2014-07-11new dinode format for big-endian conversion routinesMartin Pelikan
2014-07-11Prevent division by zero on erroneous file systems.Tobias Stoeckmann
ok pelikan@
2014-07-11add some more register definitionsJasper Lievisse Adriaanse
2014-07-11in_proto_cksum_out: zero the icmp cksum before going on so that we do notHenning Brauer
require the caller to do so. lteo needs that for divert soon, and is in line with tcp/udp and the general approach that the rest of the stack should not need to do anything regarding the cksums but setting the "needs it" flag. ok lteo
2014-07-11split ext2fs_read for the upcoming ext4 extent bits, like FreeBSD has doneMartin Pelikan
ok guenther
2014-07-11move IPv6 prefix adding from workq to taskq; as a happy benefit, weBret Lambert
can delete 2 dozen or so lines that check to see if we've queued up a prefix addition multiple times. ok stsp@
2014-07-11Use the correct type, found by naddy@.Martin Pieuchot
2014-07-11reboot(9): Add MI reboot entry functionMasao Uebayashi
Now, for kernel to "reboot" (reboot, halt, or shutdown), MD boot(9) is called in some places. This change introduces a new MI function reboot(9) which is simply a wrapper to call MD boot(9). OK kettenis@ deraadt@
2014-07-11Fix invocation of _OSC. We were passing the capabilities in the wrong DWORDMark Kettenis
and specifyig the wrong DWORD count. Moreover we should not evaluate _PDC if _OSC is present. Might not be perfect yet, but what we had previously was uterrly and totally wrong. ok guenther@
2014-07-11determine and use maximum file size instead of magical constantsMartin Pelikan
ok guenther
2014-07-11There is a use-after-free somewhere in the code that links the pfAlexander Bluhm
state to the socket pcb. Add an additional assert to narrow down the panics. OK henning@
2014-07-11sgmap loading didnt respect the dmamaps max number of segments.David Gwynne
this let it wanter off writing segment descriptors off in memory it didnt own, which led to some pretty awesome memory corruption. if you had a network card with a small number of tx descriptors per packet, a lot of memory, and a heavily fragmented packet (ie, ssh) you were basically guaranteed a confusing panic. ok miod@
2014-07-11sizeof good old inode is 128, the structure has expandedMartin Pelikan
2014-07-11whatever mickey had to drink 13 years ago, he's not going to find it again. soJasper Lievisse Adriaanse
just remove the comment and unneeded functionality which has been "#ifdef notused" for the past 13 years. OK uebayasi@
2014-07-11Remove rfc 4620 Node Information Query support (from the kernel).Sebastian Benoit
ok henning@ stu@, Yay! weerd@
2014-07-11updated inode format, whitespace, re-formattingMartin Pelikan
2014-07-11Don't hold the kernel lock while halting a processor. Assert if we detectMike Larkin
this happening. ok kettenis@, deraadt@
2014-07-11CPU_BUSY_CYCLE(): A new MI statement for busy loop power reductionMasao Uebayashi
The new CPU_BUSY_CYCLE() may be put in a busy loop body so that CPU can reduce power consumption, as Linux's cpu_relax() and FreeBSD's cpu_spinwait(). To start minimally, use PAUSE on i386/amd64 and empty on others. The name is chosen following the existing cpu_idle_*() functions. Naming and API may be polished later. OK kettenis@
2014-07-11switch from bpf_mtap to the shiny new bpf_mtap_stripvlan.Henning Brauer
bpf listeners on a vlan interface don't expect to see a vlan header (you expect those on the underlaying if). since we no longer prepend an ethernet header to later throw it away and prepend an ether_vlan_header, we prepend a ether_vlan_header right away. to unconfuse bpf listeners we need to cut the 4 extra bytes out, which is what bpf_mtap_stripvlan does. problem noticed by dlg with dhcrelay, ok benno dlg
2014-07-11boot(9): Missing if_downall() on zaurusMasao Uebayashi
zaurus's boot(9) is the only boot(9) which doesn't call if_downall(). Include sys/socket.h + net/if.h and call it. OK miod@
2014-07-11Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail andMartin Pieuchot
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is specified. idea and inputs from kettenis@, ok miod@
2014-07-11add sensors to export what the actual size of the balloon is and what itJasper Lievisse Adriaanse
should be, in bytes. currently uses SENSOR_INTEGER as sensor type, this may change in the future in favor of a new sensor type. ok sf@
2014-07-11Fix debug printf formating and kill some trailing whitespaces while here.Martin Pieuchot
2014-07-11Be less verbose with task debug messages and kill some trailingMartin Pieuchot
whitespaces while here.
2014-07-11Use membar_producer() to force visibility instead of misusingPhilip Guenther
atomic_setbits_int() ok kettenis@
2014-07-11move ieee80211 message printing from workq to taskqBret Lambert
testing stsp@ ok stsp@, dlg@
2014-07-11It's init as a process that's special, not init's original thread.Philip Guenther
Remember initprocess instead of initproc. ok matthew@ blambert@
2014-07-11separate searchslot variables into a structure like FreeBSDMartin Pelikan
ok guenther
2014-07-11sys/reboot.h does not need to be standalone and pull cdefs.h by itself.Theo de Raadt
enough kernel .S pull this in and cannot handle that (yet) ok uebayasi
2014-07-11The signal to tell init to power-off the system is SIGUSR2, not USR1Philip Guenther
Inconsistency noted by blambert@, ok deraadt@
2014-07-11Add basic DWARF line table decoderMatthew Dempsky
Includes a stand-alone addr2line clone for userspace testing. Tested extensively on amd64 and expected to eventually support other architectures too. Importing now so further development/testing can happen in-tree. Followup commits will add to the kernel build and integrate into ddb. positive feedback; no objections
2014-07-11Flush the buffercache to 16MB on hibernate and restore its previous maxMike Larkin
size (kern.bufcachepercent) on resume, for better hibernate performance. ok beck@
2014-07-10instead of defining two versions of bucketidx, just don't inline for small.Ted Unangst
ok deraadt
2014-07-10panic() doesn't need a newlineJasper Lievisse Adriaanse
ok pirofti@
2014-07-10Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-07-10Do not set the bus dying flag during DVACT_DEACTIVATE otherwise theMartin Pieuchot
explore thread will not disconnect the root hub. The flag will be set before detaching the children, like it is done during a suspend- resume cycle. Fix a panic when unplugging a cardbus *hci(4).
2014-07-10boot(9): More comment removal about cold/savectx() missed in previousMasao Uebayashi
2014-07-10boot(9): Remove comments about RB_*, "cold", and savectx()Masao Uebayashi
Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
2014-07-10KNF.Masao Uebayashi
2014-07-10Add mallocarray(9)Matthew Dempsky
While here, change malloc(9)'s size argument from "unsigned long" to "size_t". ok tedu
2014-07-10Now that sd(4) drives under softraid0 have their cache flushed whenMartin Pieuchot
DVACT_POWERDOWN is propagated in this subtree, there is no need for this shutdown hook anymore. RIP. ok kettenis@
2014-07-10Add MAP_ANONYMOUS as a synonym for MAP_ANON, per POSIX proposalMatthew Dempsky
ok miod
2014-07-10struct ucred; for fstat _KERNEL blockTheo de Raadt
2014-07-10Return RSN (WPA) information to userland during wireless scan, andStefan Sperling
make ifconfig show whether a wireless network uses WEP or WPA. Since struct ieee80211_nodereq grows in size old ifconfig won't be able to scan when running on a new kernel. While here, add missing ioctl constant IEEE80211_WPA_CIPHER_BIP. ok jsg@
2014-07-10remove most of the boolean_t infection outside uvm/ddb/pmap; ok jsgTheo de Raadt