summaryrefslogtreecommitdiffstats
path: root/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* In uvm_map_splitentry(), grab the kernel lock before calling into the amapkettenis2015-10-011-2/+7
| | | | | | | or pager code. We may end up here without holding the kernel lock from uvm_unmap(). "ja ja" tedu@
* relax vendor comparison to match variations found in olderjung2015-10-011-2/+2
| | | | models for example macmini1,1
* add const, prodded by mpijung2015-10-011-2/+2
|
* remove superfluous sensor_attach() added for debug reasonsjung2015-10-011-2/+1
|
* Remove yet more blinding whitespace.krw2015-10-011-2/+2
|
* Remove more blinding trailing whitespace.krw2015-10-0110-73/+73
|
* Make the alpha pmap (more) mpsafe by protecting both the pmap itself and thekettenis2015-10-012-50/+131
| | | | | | | | | pv lists with a mutex. This should make pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) safe to use without holding the kernel lock. This largely reverts rev. 1.75, but now of course the pmap locks are defined to actually call mtx_enter(9) and mtx_leave(9). ok visa@
* fix semicolon after if statementjsg2015-10-011-1/+2
| | | | ok jung@
* No need to wakeup(9) the sensor thread because upd_refresh() does notmpi2015-10-011-4/+2
| | | | | | sleep. Discussed with deraadt@
* add IPv6 equivalents for the permitted IPv4 setsockopts, noticed by doug@,sthen2015-10-011-1/+9
| | | | ok semarie@
* Use rtdeletemsg() in nd6_free() to align it with arptfree().mpi2015-10-011-7/+2
| | | | | | | This gives us userland notification for free and get rid of a rtrequest1(9) call. ok phessler@, mikeb@, sthen@
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-011-3/+0
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* rename the internal functions that do ml_foo ops on classes to hfsc_cl_foo.dlg2015-09-301-18/+19
| | | | | | | | this avoids confusion with the public functions (hfsc_enqueue, hfsc_dequeue, etc), and maps almost 1:1 to the mbuf list ops they now use. ok mpi@ henning@ mikeb@
* Nuke a #if 0/#endif block and a related variable. No plans to ever makekrw2015-09-301-19/+1
| | | | | | this work better than it does now. Eliminates a stray use of LABELSECTOR. ok miod@
* Use #ifndef _MACHINE_DISKLABEL_H_ everywhere. Replace _ARM_DISKLABEL_H_krw2015-09-304-10/+20
| | | | | | and _SH_DISKLABEL_H_ with _MACHINE_DISKLABEL_H_. Add the guard to loongson and octeon. The #defines are not used anywhere else in the tree so no functional change.
* Remove some trailing whitespace.krw2015-09-303-8/+8
|
* Use consistant whitespace/comments for #define'ing LABELSECTOR,krw2015-09-3017-68/+68
| | | | | LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
* enable new asmc(4) driver on amd64jung2015-09-301-2/+2
| | | | "go at it" deraadt@
* Remove remnants of sppp's special queue handling for telnet/rlogin/ftp,sthen2015-09-301-16/+2
| | | | the rest was done in r1.96. ok mikeb@
* add a (disabled) driver for the Apple System Management Controller (SMC) asjung2015-09-304-3/+661
| | | | | | found in Apple Intel based devices "go at it" deraadt@
* provide a hfsc_requeue()dlg2015-09-302-3/+28
| | | | | | | | | | this will allow packets to taken off an interfaces send queue, and requeued if space didnt exist on the hardware. the internal names are a bit ugly, i want to change them in the next commit. ok henning@ mpi@
* implement new "prot_exec" tame(2) request:semarie2015-09-303-4/+17
| | | | | | | | | | | - by default, a tamed-program don't have the possibility to use PROT_EXEC for mmap(2) or mprotect(2) - for that, use the request "prot_exec" (that could be dropped later) initial idea from deraadt@ and kettenis@ "make complete sense" beck@ ok deraadt@
* sleep until all references to an interface have been released during detach.dlg2015-09-302-15/+10
| | | | | | | this is done by moving to the refcnt api and using refcnt_finalize. tested by Hrjove Popovski ok mpi@
* Run the tx completion path without the kernel held. This makes thekettenis2015-09-302-47/+29
| | | | | | | | | | | "fast path" through the interrupt handler not grab the kernel lock anymore. This removes the code that attempts to reclaim tx descriptors from em_start(). Keeping that code would have complicated the locking. The need to reclaim tx descriptors that way should have largely disappeared now that the interrupt handler doesn't have to wait on the kernel lock. ok mpi@ tested by many
* Do not try to refetch a route at the L2 layer if the given one is DOWNmpi2015-09-301-9/+3
| | | | | | | | and always return EHOSTUNREACH. Please let me know if you find any new "No route to host" error. ok claudio@
* remove cisco hdlc code from sppp(4), it's no longer used - pppoe(4) only usessthen2015-09-302-282/+53
| | | | | ppp framing, and the drivers for sync serial cards have been removed so the sppp code is now only used to support pppoe(4). ok mpi@, kill it chris@
* I missed an #ifdef notyet when enabling the aliasing ppgtt code.kettenis2015-09-301-3/+1
| | | | | Hopefully this fixes the stability problems people have been seeing on sandybridge and up after the ppgtt code got enabled.
* How about I delete _all_ the BITFIELDTYPE comments?guenther2015-09-301-12/+12
|
* Remove some annoying trailing whitespace.krw2015-09-301-3/+3
|
* Add missing prototype for bios_getdiskinfo() to amd64/disksubr.c.krw2015-09-292-3/+8
| | | | | | | Include systm.h inside #ifdef DEBUG in i386/disksubr.c, as amd64/disksubr.c. Makes amd64 and i386 disksubr.c identical once more.
* Use the DMTC0 macro and MTC0_HAZARD in the UPAGES > 1 case. Now R8000 kernelmiod2015-09-291-2/+3
| | | | have all their m[ft]c0 instructions correctly wrapped.
* Unlock interrupt handler rx path with intr_barrierchris2015-09-291-3/+15
| | | | ok mikeb@
* Save a lot of people grief. tame()'d CMSG reception is busted and itderaadt2015-09-291-3/+3
| | | | | will take some time to fix it. Problem appears to be that the control mbuf is not normalized into flat memory.
* Reluctantly classify statfs and fstatfs as RPATH for now, because theyderaadt2015-09-291-3/+4
| | | | leak system path information. Should be reconsidered in the future.
* make the bpf filters a bpf_program instead of an array of bpf_insn.dlg2015-09-291-20/+49
| | | | | | | | bpf_program contains a pointer to that same array, but also the number of elements in it. this allows us to know the size when we want to free them. ok deraadt@
* get rid of the mutex between access to the status block and myx_downdlg2015-09-291-65/+44
| | | | | | | | | | | | myx is unusual in that it has an explicit command to shut down the chip that gets an interrupt when it's done. so myx_down sends the command and has to sleep until it gets that interrupt. this moves to using a single int to represent that state (so loads and stores are atomic), and sleep_setup/sleep_finish in myx_down to wait for it to change. this has been running in production at work for a few months now tested by chris@
* add sizes to some of the simpler free callsderaadt2015-09-297-42/+39
| | | | ok mpi
* regenjung2015-09-292-4/+19
|
* add keyboard/trackpad IDs found in recent MacBooks (12" retina)jung2015-09-291-1/+4
| | | | ok mpi@
* Huawei K4511 3G modem.mpi2015-09-291-2/+3
| | | | From phil AT unita.com.au
* regenmpi2015-09-292-4/+9
|
* Huawei K4511 3G modem.mpi2015-09-291-3/+4
| | | | From phil AT unita.com.au
* Delete the final, inscrutable NOSTRICT and VARARGS lint commentsguenther2015-09-291-2/+1
| | | | ok millert@
* More mechanical switching to readdisksector(), although this is akrw2015-09-284-40/+27
| | | | | | | slightly different pattern. hppa/macppc compile and boot so hppa64/aviion surely do too! ok deraadt@
* satisfy RAMDISK by placing cold == 2 case inside #ifdef DDBderaadt2015-09-281-1/+3
|
* Track size of an opaque allocation to pass to free() laterderaadt2015-09-283-10/+12
| | | | ok guenther tedu
* easy size for free(); ok beckderaadt2015-09-281-2/+2
|
* In low-level suspend routines, set cold=2. In tsleep(), use this toderaadt2015-09-285-7/+14
| | | | | | | | spit out a ddb trace to console. This should allow us to find suspend or resume routines which break the rules. It depends on the console output function being non-sleeping.... but that's another codepath which should try to be safe when cold is set. ok kettenis
* the kernel lock is no longer needed in the fixed case since uvm_maptedu2015-09-281-5/+1
| | | | | will perform the unmap as necessary, holding the vm lock. reminded by kettenis
* add a flag to indicate to uvm_map that it should unmap to make space.tedu2015-09-283-9/+14
| | | | | | this pulls all the relevant operations under the same map locking, and relieves calling code from responsibility. ok kettenis matthew