summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-08-18Simplify and sync the code and comments for copying the macro nameIngo Schwarze
in man_pmacro() and mdoc_pmacro(). In particular, no need to use isgraph(3) here, that has already been done in main.c. Joint work by Kristaps and myself, ok kristaps@.
2010-08-18Use isascii(3) to make sure we really throw away non-ASCII characters,Ingo Schwarze
because isgraph(3) returns true for some eight-bit characters. ok kristaps@
2010-08-17regenJasper Lievisse Adriaanse
2010-08-17- TI doesn't mean Texas IntelJasper Lievisse Adriaanse
2010-08-17several fixes from netbsd:Jasper Lievisse Adriaanse
Coverity CID 1660: Plug memory leaks. Coverity CID 2989: Use the error path to return. Coverity CID 3212: Don't return, goto out in all cases so that cleanup happens. ok otto@
2010-08-17Make sure fast trap handlers correctly invoke soft interrupts by markingMiod Vallat
them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
2010-08-17MDEXT missed some files (result was they are not listed in the build-timeTheo de Raadt
SHA256 file). Issue spotted by claudio. ok miod
2010-08-17Power management for PCI devices. For now just put everything in the D3Mark Kettenis
(deepest sleep) state upon suspend, and restore power upon resume. ok deraadt@
2010-08-16Restore initialization of apcicnaddr which got accidentally removed in revisionMiod Vallat
1.5, about 5 years ago. My bad. ok deraadt@
2010-08-16Make sure we reserve enough room after the kernel image to avoid stompingMiod Vallat
over the PROM page tables on sun4c; also crank the tape kernel generous size estimate to 4MB; crank version. ok deraadt@
2010-08-16Netboot description tweaks; spotted by and help krw@Miod Vallat
2010-08-16djust miniroot disklabel for layout changes caused by fdisk partitionMark Kettenis
alignment changes. ok deraadt@
2010-08-16Add a dummy elf64.c, effectively removing support for loading 64-bit kernelsMark Kettenis
from cdboot to slim it down below the 32k limit.
2010-08-16Fix another gcc4 mis-alignment, by using bcopy() rather thanKenneth R Westerback
(u_int64_t *)charptr = value. Problem reported by Daniel Ouellet, first diff from matthieu@, another from naddy@ equivalent to this one. ok millert@ dlg@ (for naddy's) deraadt@
2010-08-16backout previous temporarily; discussed with deraadt@Damien Miller
2010-08-13now that we are at -current again, re-enable POOL_DEBUGPeter Hessler
"go ahead" kettenis@
2010-08-13if we pass pkgnames with .tgz to -l, just deal with it silently.Marc Espie
2010-08-13bad works better if you push consistent stuff in it, like always strings...Marc Espie
2010-08-13whitespaceMarc Espie
2010-08-13Fix indentation.Mark Kettenis
2010-08-13when sending a fragmented packet, dont check if the interfaces send queueDavid Gwynne
has enough space for all the fragments on it. this check was snuck in by itojun under an unrelated commit. it broke when i set the virtual interface send queue depths to 1, which beck had to special case at n2k10. without this code we avoid these dubious checks along with another splnet/splx pair, and it should make future work on manipulating send queues easier. ive been running this in production since n2k10 (~7months ago). ok claudio@ henning@ deraadt@
2010-08-12OpenSSL_add_all_algorithms is the name of the function we have a man pageTed Unangst
for, so use that. ok djm
2010-08-12fix a few warnings. ok jsingTed Unangst
2010-08-12some inconsequential cleanups. ok deraadtTed Unangst
2010-08-12close any extra file descriptors inherited from parent at start andDamien Miller
reopen stdin/stdout to /dev/null when forking for ControlPersist. prevents tools that fork and run a captive ssh for communication from failing to exit when the ssh completes while they wait for these fds to close. The inherited fds may persist arbitrarily long if a background mux master has been started by ControlPersist. cvs and scp were effected by this. "please commit" markus@
2010-08-12if we ask for cleanup, always close the location. If it's not open, it'sMarc Espie
harmless. This prevents processes from piling up on !network addition of already existing packages... (fixes THAT bug)
2010-08-12homogeneous style.Damien Bergamini
no binary change.
2010-08-12Enable periodic (every 4 minutes) power amplifier calibrationDamien Bergamini
on AR9285 and AR9287.
2010-08-12no need to set these pointers to NULL, softc is already zeroed.Damien Bergamini
2010-08-12For chips in open-loop power control mode, periodically (every 30 secs)Damien Bergamini
compensate Tx gain for temperature changes.
2010-08-12Fix look-up of the power control digital-to-analog converter (PCDAC)Damien Bergamini
value in the Tx gain table. This fixes AR9280/AR9281 chips in open-loop power control mode, like the high power solution found in the Acer Aspire One. tested by ray@
2010-08-12Print the real device name followed by the disklabel UID in parenthesisJoel Sing
when fsck is run against a disklabel UID. This allows a user to determine which device is really being scanned. ok krw@
2010-08-12Fix a ton of space and tab violations. No binary change.Marco Peereboom
ok oga
2010-08-12Fix a one character typo that broke interrupt handling on ironlake.Owain Ainsworth
we disable the interrupt while we are handling it (this is required according to intel) but instead of writing the version with the master enable bit back to the Interrupt Enable Register, we wrote it to the Interrupt Indication Register, so after the first interrupt we only got lucky due to shared interrupts when we were after anything. s/IIR/IMR/ on that one call and it works. tested by guenther@ and marco@ and myself. Fixes hangs when waiting for the chip which were unstuck by moving the mouse.
2010-08-12Instead of returning EBUSY when the busy flag is set in the ioctl, sleepOwain Ainsworth
until whoever has it is done with it. This is kept as flag/sleep condvars instead of a rwlock because later we may want to quiesce the handler before suspend to make sure nothing is sleeping on a chip that is about to be whacked (doing so will change the proc so rwlocks won't work). ok damien@
2010-08-12Nuke extra (typoed) extern declaration and a spare newline from the lastOwain Ainsworth
commit. "fix it -- free commit" beck@
2010-08-12Reset the chip upon suspend, to make sure it stops DMA. Reset it again uponMark Kettenis
resume to make sure the chip is initialized the same way as upon attach. Fixes memory corruption after resume on the Dell Inspirion 4150. ok deraadt@
2010-08-12make fgetln fixups look like the man page. correct a pair of brances andTed Unangst
some other style tweaks
2010-08-12correct a format string. not sure who thought size_t would be a good matchTed Unangst
for ccd size, though.
2010-08-12these files don't need to include nearly so many headersTed Unangst
2010-08-12clean up some macro obfuscation and assorted styling problems.Ted Unangst
fix a bonus off by one bug. ok matthew
2010-08-12Use symbolic names for the file descriptors rather than numeric values.Kevin Lo
Some from damien@, millert@ ok phessler@, millert@
2010-08-12Initialize xs to NULL in gdt_intr() since it now might be used beforeMatthew Dempsky
otherwise assigned. ok krw@
2010-08-12we are at -current againTheo de Raadt
2010-08-11Disable the RTC the periodic interrupt. Leaving it enabled causes theMark Kettenis
Dell Inspirion 4150 to wake up immediately even though RTC_EN isn't set in the PM1 Enable register. ok deraadt@, mlarkin@
2010-08-11plug several resource leaksJasper Lievisse Adriaanse
help and ok millert@ (ok deraadt@ for an earlier version of this diff)
2010-08-11Make the number of vnodes to correspond to the number of buffers inBob Beck
buffer cache - we grow them dynamically, but do not attempt to shrink them if the buffer cache shrinks after growing. Tested by very many for a long time. ok oga@ todd@ phessler@ tedu@
2010-08-11crank versionTheo de Raadt
2010-08-11De-inline CHS_rw. Somehow the merger of two monster __asm __inline statementsTheo de Raadt
into one function is generating broken code; it might be because of missing register clobbers. This is a workaround... it'd be nice to know the real problem work done with mlarkin and pirofti
2010-08-11Use the correct offsets when reading/writing to DCA_TXCTRL in the 82599Jonathan Gray
case. Adapted from Intel code in FreeBSD and tested on 82598/82599.