summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-24Rework pmap to use dynamic P0 and P1 region allocation, instead of allocatingMiod Vallat
the largest possible page table for every pmap; from NetBSD. This allows the kernel to use much less memory for page tables. Significant differences against the NetBSD code are: - allocation of page table pages is done with a pool instead of allocating whole logical pages from uvm and managing the freelist within pmap, never releasing allocated pages. - try to use pt_entry_t * rather than int * whenever possible. - growth of P0 and P1 regions is allowed to fail, if invoked from pmap_enter with the PMAP_CANFAIL flag. This will stall processes until memory for the page tables can be obtained, rather than panicing, in most cases. - keep management of mappings for managed pages using pv lists tied to the vm_page (using __HAVE_VM_PAGE_MD), rather than a global pv_list head. - bound check against Sysmap[] in pmap_extract() when asked for a kernel address. As a result of this, bsd.rd can now install a working system on a 12MB machine without needing to enable swap.
2013-11-24more ctype cleanupsTheo de Raadt
checked by jca
2013-11-24Add comments to ACS table matching terminfo(5).Nicholas Marriott
2013-11-24Clean up the NTFS debug code - use uppercase names for the debug macros,Joel Sing
especially since 'dprintf' now has another meaning (at least outside of the kernel). Tweak the macro syntax so we can avoid having to double bracket all invocations. Also apply a good dose of style(9). ok krw@
2013-11-24Replace the swapdev CIRCLEQ with a TAILQ and replace the manually rolledJoel Sing
list traversals with LIST_FOREACH. ok beck@ krw@
2013-11-24I2C driver for am335x, ported from netbsd, not enabled yet.Raphael Graf
"Commit the driver code" deraadt@
2013-11-24add missing " from a commented-out .Nd line; doesn't affect mandoc output,Stuart Henderson
but it was causing incorrect output from "man -k".
2013-11-24simplify determination of OBJDIR to what we actually use.Marc Espie
(prevents some race conditions by just chdir()'ing into the right objdir) problem noticed by theo okay'd by general apathy...
2013-11-24Replace ## by # in format.Nicholas Marriott
2013-11-24more unsigned char casts for ctypeTheo de Raadt
ok jca
2013-11-24fairly obvious ctype cleanup dealing with argvTheo de Raadt
ok jca
2013-11-23fix format string; OK deraadt@Gleydson Soares
2013-11-23yet more unsigned char casts for ctypeTheo de Raadt
checked by jca
2013-11-23remove redundant check, and be a bit more careful about queue namingTheo de Raadt
discussion with jca ok millert guenther
2013-11-23Verify that the directory entry being looked at is entirely present inPhilip Guenther
the read buffer before trying to process it, so that invalidated or bogus offsets can't trigger access past the end of the read buffer. Also, zero out the dirent buffer to avoid leaking stack garbage to userspace. Problem pointed out by Pedro Martelletto (pedro (at) ambientworks.net) ok deraadt@
2013-11-23obvious unsigned char cast for ctypeTheo de Raadt
ok jca
2013-11-23remove unused macro; ok jcaTheo de Raadt
2013-11-23unsigned char casts for ctypeTheo de Raadt
ok jca
2013-11-23unsigned char casts for ctypeTheo de Raadt
ok jca
2013-11-23send a extra space to the bit bucketTheo de Raadt
2013-11-23obvious unsigned casts for ctypeTheo de Raadt
2013-11-23obvious unsigned char casts for ctypeTheo de Raadt
2013-11-23unsigned char casts for ctype; ok jcaTheo de Raadt
2013-11-23- use a flag file to recognize a successfull autoinstaller runRobert Peichaer
- use a shorter constant logfile name - quote From lines and remove ^M in ftp output from logfile - provide the autoinstaller logfile as mail to root with help and positive feedback halex@ krw@ deraadt@ ok halex@
2013-11-23With -k, kill window after using it to work out -c path. Reported byNicholas Marriott
jmacristovao at gmail dot com.
2013-11-23Run doshutdownhooks() and config_suspend() even when boot() is called whileMasao Uebayashi
cold != 0. Indent and make hppa/hppa64 boot() closer to others. OK kettenis@
2013-11-23task_add(NULL, blah) is a fault, fix by using task_add(systq, blah).David Gwynne
reported by josh grosse on misc@
2013-11-22The getopt() prototype and externs don't belong in stdlib.h. BerkeleyTodd C. Miller
moved them to unistd.h to match POSIX in 1995 but we never did. The exception to this is getsubopt() which POSIX says should be in stdlib.h. The non-standard suboptarg extern remains in the BSD-only section of stdlib.h. Neither getsubopt() nor suboptarg belong in unistd.h or getopt.h. They were only there to allow us to protect all the getopt() bits from being multiply defined. OK guenther@
2013-11-22Handle empty current directory more gracefully.Nicholas Marriott
2013-11-22regenMark Kettenis
2013-11-22Another AMD Family 15h Models 10h-1Fh device.Mark Kettenis
2013-11-22unsigned char casts for ctype macrosTheo de Raadt
ok martynas
2013-11-22wrappers for is*/to* that make damn sure their arguments areMarc Espie
cast to unsigned chars. okay deraadt@
2013-11-22remove unused goo, okay guenther@Marc Espie
2013-11-22doc nit okay millert@Marc Espie
2013-11-22unsigned char casts where needed for for ctype.hTheo de Raadt
checked by florian
2013-11-22Remove unused proc argument in in6_control().Martin Pieuchot
ok henning@, mikeb@
2013-11-22Teach kdump(1) about USB, VIDIOC and generic DRM ioctls.Martin Pieuchot
ok deraadt@, guenther@
2013-11-22obvious cast for isspace()Theo de Raadt
2013-11-22Comment out more ioctls that are part of the v4l2 API but that we don'tMartin Pieuchot
implement. Required to teach kdump(1) about VIDIOC_* ioctls.
2013-11-22don't use PAGE_SIZE, it is not portable. Ted can polish this afterTheo de Raadt
if he wants, but let us get the tree building.
2013-11-22unsigned char cast for some ctype callsTheo de Raadt
ok krw
2013-11-22Kirk was being waaaay too chummy with the compiler when he trustedPhilip Guenther
it to not optimize away a comparison against NULL-1. Add (unsigned char) casts for some ctype calls. Teach fsck_ext2fs about MAXPARTITIONS, letting it operate on partitions 'i' through 'p'. ok deraadt@ millert@ otto@
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
Careful second audit by millert
2013-11-22Whole bunch of (unsigned char) casts carefully added for ctype calls.Theo de Raadt
Careful second audit by millert
2013-11-22Stray missing (long long) on a daddr_t variable being printed.Kenneth R Westerback
ok jsing@
2013-11-21Keep the flow until last IPsec SA is deleted, if the flow is shared byYASUOKA Masahiko
multiple IPsec SAs in NAT-T case. This fixes a problem that L2TP/IPsec connections are disconnected improper in case multiple Windows clients are connected from behind one NAT. ok markus
2013-11-21syncTheo de Raadt
2013-11-21Fix a big memory leak in libfuse.Sylvestre Gallon
Spotted by sthen@ With some input from stsp@ and tested by mpk@ and sthen@ ok sthen@, stsp@
2013-11-21syncTheo de Raadt