summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2010-10-01Provide a WEAK_ALIAS macro in <machine/asm.h> for the few platformsPhilip Guenthe
that didn't already have one, and then immediately use it in libc's SYS.h ok miod@
2010-10-01Add __only_inline, for use in headers like <ctype.h> for defining copiesPhilip Guenthe
of functions that can only by used by the compiler for inlining. Also, document __returns_twice, a particularly black piece of magic. ok deraadt@, kettenis@, millert@
2010-09-30If a caller is requesting to be set to the same rtable that theyPeter Hessler
currently have, let the call succeede. Mirrors the same behaviour as setrtable() OK claudio@
2010-09-30Convert printf()'s to DPFDEBUG() macro.Ryan Thomas McBride
ok dlg
2010-09-29pipex_pptp_userland_output() calls always m_pullup() 16 bytes to theYASUOKA Masahiko
GRE message. But when npppd send a ack-only GRE message, the message will be only 12 bytes, so the m_pullup() will fail. call m_pullup() with proper length.
2010-09-29Add DMA sync operations. Fixes problems on macppc with gcc4 becauseMark Kettenis
apparently it reorders stores in a bad way. Mostly from NetBSD. earlier diff tested by landry@ (who noticed the problems on macppc) ok deraadt@
2010-09-29In the implementation of the SIOCS80211DELNODE ioctl, callMark Kettenis
ieee80211_node_leave() instead of ieee80211_release_node() which screws up reference counting and leads to use after free problems elsewhere in the code. Since ieee80211_node_leave() is only available if hostap support is compiled in, don't privide the SIOCS80211DELNODE ioctl if we're compiling without hostap support (e.g. on ramdisks). ok deraadt@, damien@
2010-09-29grab the acpi thread lock very early in acpi thread startup; not that itTheo de Raadt
is likely that anyone will race us... but why be careless. ok kettenis
2010-09-29Initialize the ts_recent (received timestamp) field in the newly createdClaudio Jeker
socket from the information we have in the syncache. Also bzero() the tcpcb that is passed to tcp_dooptions() just to be sure.
2010-09-29The attach function can return 1 now because there is no more priorityTheo de Raadt
scheme relating to pmsi. from alexandr.shadchin@gmail.com
2010-09-29Band-aid to prevent uvm_mapent_alloc() sleeping with the pseg mutex heldThordur I. Bjornsson
(as this trips assertwaitok() in pool_get()). This should get revisited soon. "Commit it!" from many, as people like to be able to hit swap without havoc.
2010-09-29It is not allowed to recalculate the window scale after the initial SYN.Claudio Jeker
A session must stick to the rscale factor sent out in the SYN packet. Remove the bogus tcp_rscale() call which is done after a full established session is returned from the syncache.
2010-09-29Back out previous, it appears to be broken.Joshua Elsasser
2010-09-29When reading MXCSR from userland sigcontext, mask out invalid bits.Joshua Elsasser
This prevents a protection fault if a userland signal handler scribbles all over it's struct sigcontext Help from and ok guenther@ kettenis@
2010-09-29It's never too late to make things at least compile.Miod Vallat
2010-09-29Radeon HD4200 Mobility; from brynet. Some flags tweaks from me.Owain Ainsworth
2010-09-29syncOwain Ainsworth
2010-09-29Radeon HD4200 Mobility from BrynetOwain Ainsworth
2010-09-29back out support for variable sized processing unit controls untilJacob Meuser
I can figure out why it causes boot hangs with some Sonix camera
2010-09-29Adjust to the pipex changes introduced during j2k10. Compiles again notClaudio Jeker
sure if all protocols work.
2010-09-29Do not delay ACKs on connections using loopback interfaces. There is noClaudio Jeker
reason to reduce the amount of ACKs sent and delayed ACKs have a very bad interaction with the large MTU of lo(4) and the fairly small socketbuffer size. In collaboration with andre@freebsd. OK deraadt@
2010-09-29Fix a unfinished comment and add another one for tcp_update_(snd|rcv)space().Claudio Jeker
Reminded by naddy@
2010-09-28Implement a per-cpu held mutex counter if DIAGNOSTIC on all non-x86 platforms,Miod Vallat
to complete matthew@'s commit of a few days ago, and drop __HAVE_CPU_MUTEX_LEVEL define. With help from, and ok deraadt@.
2010-09-28malloc() without a WAIT flagTheo de Raadt
2010-09-28wrap long line. correct indent. delete a useless comment.YASUOKA Masahiko
OK djm@ claudio@ dlg@
2010-09-28Make this compile again.Miod Vallat
2010-09-28typoMiod Vallat
2010-09-28replace hand-rolled infinite loop with LIST_FOREACHBret Lambert
ok claudio@ guenther@
2010-09-28Correct the handling of GS.base when iretq faults: the fault happensPhilip Guenthe
with CPL == 0 but the user's GS.base, so the normal INTRENTRY handling won't work. Contrawise, the asm that trap() redirects us to when that happens (resume_iret) sees a trapframe showing CPL==3 but it's run with the kernel's GS.base, so INTRENTRY won't work there either. asm style fixes drahn@ and mikeb@ ok kettenis@
2010-09-28do not assume PR_NOWAIT is 0; it is not anymoreTheo de Raadt
2010-09-28missing PR_NOWAITTheo de Raadt
2010-09-27must have either PR_WAITOK or PR_NOWAIT set.David Gwynne
2010-09-27Unbreak atalk: don't call ifa_add() until the ifa_addr pointer has been setPhilip Guenthe
ok henning@
2010-09-27A few M_ZEROs without any M_WAITOK/M_NOWAITs.Thordur I. Bjornsson
2010-09-27Make sure the SEND_DEV_ID command is sent synchronously, so the response bufferMiod Vallat
is valid when we look at it. Repairs intellimouse (former pmsi) operation.
2010-09-27must use M_WAITOK here; run into by landryTheo de Raadt
2010-09-27a pool_get() assuming that PR_NOWAIT is 0 (not anymore!); run into by naddyTheo de Raadt
2010-09-27add support for tracing process stacks in ddb (trace /p).Mike Belopuhov
due to the way arguments are parsed, pid has to be specified in the hexadecimal notation. tested by me and sthen, ok sthen kettenis
2010-09-27tedu's shiny new pool_get kassert found an instance of PR_NOWAIT orMarco Peereboom
PR_WAITOK not being set. While here add a diagnostic check for malloc.
2010-09-26support variable sized (bControlSize != 2) processing unit bmControls,Jacob Meuser
and add support for more processing unit controls. from Martin Pieuchot, thanks!
2010-09-26No need for ums either; from BradMiod Vallat
2010-09-26No need for pms on the installation media; from BradMiod Vallat
2010-09-26unify some pool and malloc flag values. the important bit is that all flagsTed Unangst
have real values, no 0 values anymore. ok deraadt kettenis krw matthew oga thib
2010-09-26Merge pmsi(4) into pms(4). From Alexandr Shadchin on tech@.Miod Vallat
2010-09-26remove static so things show up in ddb.Thordur I. Bjornsson
ok miod@, oga@, tedu@
2010-09-26Length field in L2TP header was broken.YASUOKA Masahiko
2010-09-25ppb(4) should respect pci_dopm, like pci(4) does, and not try to poweroffMike Larkin
the bridge if pci_dopm=0. Fixes Gateway LT3103u and Lenovo Thinkpad 100e netbooks, allowing them to suspend again (if pci_dopm is set to 0 in acpi.c). Tested by myself and deraadt on a variety of hardware. ok deraadt@
2010-09-25when vscsi is closed, deactivate all child devices so when we kill theDavid Gwynne
commands still on the queues the child device wont retry it cos its been deactivated.
2010-09-24- missing semicolon from r@undefined.chJasper Lievisse Adriaanse
2010-09-24- let zaurus compile again after utwitch enableJasper Lievisse Adriaanse