summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Back in 2003, get_cyclecount() was changed to use binuptime() insteadru2009-10-291-10/+4
| | | | | | of nanotime(). Reflect this change in a manpage. Reviewed by: phk, markm
* HZ is now 1000 on most platforms, update a comment.ru2009-10-291-1/+1
| | | | Reviewed by: phk, markm
* Fix some problems with effective mmap() offsets > 32 bits. This wasjhb2009-10-282-70/+61
| | | | | | | | | | | | partially fixed on amd64 earlier. Rather than forcing linux_mmap_common() to use a 32-bit offset, have it accept a 64-bit file offset. This offset is then passed to the real mmap() call. Rather than inventing a structure to hold the normal linux_mmap args that has a 64-bit offset, just pass each of the arguments individually to linux_mmap_common() since that more closes matches the existing style of various kern_foo() functions. Submitted by: Christian Zander @ Nvidia MFC after: 1 week
* Remove spurious `)`brueffer2009-10-281-1/+1
| | | | | | PR: 137758 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week
* Fix date (1) and SEE ALSO section.brueffer2009-10-281-3/+3
| | | | | Submitted by: Ulrich Spoerlein (1) MFC after: 1 week
* Initialize f_rabuf in the raw device case. A subsequent close()brueffer2009-10-281-0/+1
| | | | | | | | later on would try to free it, leading to a crash. PR: 93998 Submitted by: neel MFC after: 1 week
* Do first controller time sync after 1 minute, as in Adaptec's vendoremaste2009-10-281-1/+1
| | | | driver.
* Close a stream file descriptor leak.brueffer2009-10-281-0/+1
| | | | | | PR: 138130 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* Move pselect(3) man page to section 2.kib2009-10-284-5/+8
| | | | | Noted by: jhb MFC after: 1 month
* Close a file descriptor leak in an error case.brueffer2009-10-281-0/+1
| | | | | | PR: 138374 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* Now that the zoneinfo data is automatically updated when a new worldedwin2009-10-281-1/+4
| | | | | | | | is installed, we should at least have the tzsetup tool available! Suggested by: Andriy Gapon <avg@freebsd.org> Noticed by: Ben Kaduk <minimarmot@gmail.com> MFC after: 1 week
* Whitespace fixup: 8 spaces -> tabemaste2009-10-272-6/+6
|
* Bugfix: Use formula from section 7.2.3 of RFC 4960. Reported by Martin Becke.tuexen2009-10-271-1/+1
| | | | | Approved by: rrs (mentor) MFC after: 3 days
* Fix typos and mdoc style.brueffer2009-10-271-2/+3
|
* Don't ignore the return value of g_modevent() in fdc_modevent().jh2009-10-271-2/+1
| | | | Approved by: trasz (mentor)
* Don't ignore the return value of g_modevent() in acd_modevent().jh2009-10-271-2/+1
| | | | Approved by: trasz (mentor)
* Add link for callout_schedule(9).emaste2009-10-271-0/+1
|
* MFV of tzdata2009pedwin2009-10-271-40/+52
| | | | | | Merge of r198513 - Argentina does not go to DST this year.
* Regeneratekib2009-10-274-5/+18
|
* Regeneratekib2009-10-273-5/+17
|
* Regeneratekib2009-10-273-2/+41
|
* Commit libc files missed in r198508kib2009-10-273-8/+1
|
* Current pselect(3) is implemented in usermode and thus vulnerable tokib2009-10-279-82/+109
| | | | | | | | | | | | | | | | | well-known race condition, which elimination was the reason for the function appearance in first place. If sigmask supplied as argument to pselect() enables a signal, the signal might be delivered before thread called select(2), causing lost wakeup. Reimplement pselect() in kernel, making change of sigmask and sleep atomic. Since signal shall be delivered to the usermode, but sigmask restored, set TDP_OLDMASK and save old mask in td_oldsigmask. The TDP_OLDMASK should be cleared by ast() in case signal was not gelivered during syscall execution. Reviewed by: davidxu Tested by: pho MFC after: 1 month
* In r197963, a race with thread being selected for signal deliverykib2009-10-2716-185/+77
| | | | | | | | | | | | | while in kernel mode, and later changing signal mask to block the signal, was fixed for sigprocmask(2) and ptread_exit(3). The same race exists for sigreturn(2), setcontext(2) and swapcontext(2) syscalls. Use kern_sigprocmask() instead of direct manipulation of td_sigmask to reschedule newly blocked signals, closing the race. Reviewed by: davidxu Tested by: pho MFC after: 1 month
* In kern_sigsuspend(), better manipulate thread signal mask usingkib2009-10-274-37/+36
| | | | | | | | | | | | | | | | | | | | | | kern_sigprocmask() to properly notify other possible candidate threads for signal delivery. Since sigsuspend() shall only return to usermode after a signal was delivered, do cursig/postsig loop immediately after waiting for signal, repeating the wait if wakeup was spurious due to race with other thread fetching signal from the process queue before us. Add thread_suspend_check() call to allow the thread to be stopped or killed while in loop. Modify last argument of kern_sigprocmask() from boolean to flags, allowing the function to be called with locked proc. Convertion of the callers that supplied 1 to the old argument will be done in the next commit, and due to SIGPROCMASK_OLD value equial to 1, code is formally correct in between. Reviewed by: davidxu Tested by: pho MFC after: 1 month
* When protection of wired read-only mapping is changed to read-write,kib2009-10-272-20/+56
| | | | | | | | | | | | | | install new shadow object behind the map entry and copy the pages from the underlying objects to it. This makes the mprotect(2) call to actually perform the requested operation instead of silently do nothing and return success, that causes SIGSEGV on later write access to the mapping. Reuse vm_fault_copy_entry() to do the copying, modifying it to behave correctly when src_entry == dst_entry. Reviewed by: alc MFC after: 3 weeks
* Don't leak a file descriptor when ejecting a CDROM.cperciva2009-10-261-0/+1
| | | | | Submitted by: Ronald Klop, trhodes Note to self: don't do commits while half-asleep
* Sync with the other archs and wrapper the prototype of in_cksum_skip(9)marius2009-10-261-0/+2
| | | | | | | in #ifdef _KERNEL. Submitted by: Ulrich Spoerlein MFC after: 1 month
* Revert r198500 for now, this will break situations whenthompsa2009-10-263-0/+88
| | | | | | | hw.pci.usb_early_takeover is set to zero and the SMM release is never done. Pointed out by: marcel
* Remove usb controller takeover code now that it is handled by the pci code.thompsa2009-10-263-88/+0
| | | | | Reminded by: jhb Reviewed by: HPS
* Improve the round robin stream scheduler.tuexen2009-10-261-11/+5
| | | | | Approved by: rrs (mentor) MFC after: 3 days
* Trim empty mergeinfo.jhb2009-10-260-0/+0
|
* Another nit that both I and ispell missed.jhb2009-10-261-1/+1
| | | | Submitted by: Ben Kaduk minimarmot of gmail
* There is no need to "busy" a page when the object is locked for the durationalc2009-10-261-2/+1
| | | | of the operation.
* Fix some spelling nits.jhb2009-10-261-5/+5
|
* Fix typo in bluetooth.3emax2009-10-262-3/+3
| | | | | | Do not use reserved C++ keyword "new" MFC after: 1 month
* Fix parsing of mount options specified with -o in case an option withjh2009-10-261-5/+5
| | | | | | | | | value is preceded by an option without value (for example -o option1,option2=value). Options must be separated before searching for '='. Also compare pnextopt explicitly against NULL. PR: bin/134069 Approved by: trasz (mentor)
* Merge r198489 from vendor/ncurses/dist:rafan2009-10-261-0/+6
| | | | | | | | | | | | | Pull upstream patch to fix ee(1) crash when received SIGWINCH: modify _nc_wgetch() to check for a -1 in the fifo, e.g., after a SIGWINCH, and discard that value, to avoid confusing application (patch by Eygene Ryabinkin, FreeBSD bin/136223). PR: 136223 Submitted by: Eygene Ryabinkin Obtained from: ncurses-5.7-20091024 snapshot MFC after: 3 days
* Report SATA speeds to CAM, to not confuse users with low numbers logged.mav2009-10-261-0/+6
|
* Round timeout up when converting CAM milliseconds to ATA seconds.mav2009-10-261-2/+2
|
* Increase ATA command timeouts. Some drives need more then 5s to spin-up.mav2009-10-264-9/+9
| | | | PR: kern/111023
* Document new modularised ATA kernel options.mav2009-10-261-0/+37
| | | | | PR: kern/133162 MFC after: 3 days
* Add IDs for PATA part also.mav2009-10-261-0/+2
|
* Add two more VIA SATA chip IDs.mav2009-10-262-0/+4
| | | | PR: kern/135057
* Document atapci kernel module split.mav2009-10-261-0/+9
| | | | | PR: amd64/139859 MFC after: 3 days
* Fix SATA on nVidia MCP55 chipset. It needs some short time to allow BAR(5)mav2009-10-261-1/+2
| | | | | | | memory access. PR: amd64/128686, amd64/132372, amd64/139156 MFC after: 3 days
* - Initialize variable in order to avoid GCC warning and enable WARNS=6.lulf2009-10-262-2/+1
| | | | | PR: bin/139970 Submitted by: Ulrich Spörlein <uqs -at- spoerlein.net>
* Eject CDROM after installation if used as source media.cperciva2009-10-261-0/+22
| | | | | Submitted by: randi MFC after: 1 month
* Simplify the inner loop of vm_fault_copy_entry().alc2009-10-261-13/+12
| | | | Reviewed by: kib
* - Add support for Marvell Yukon 88E8042 device.lulf2009-10-253-0/+5
| | | | | Submitted by: Mario Lobo <mlobo -at- digiart.art.br> Approved by: yongari
OpenPOWER on IntegriCloud