Replace ## by # in format.
simplify determination of OBJDIR to what we actually use.
(prevents some race conditions by just chdir()'ing into the right objdir)
problem noticed by theo
okay'd by general apathy...
add missing " from a commented-out .Nd line; doesn't affect mandoc output,
but it was causing incorrect output from "man -k".
I2C driver for am335x, ported from netbsd, not enabled yet.

"Commit the driver code" deraadt@
Replace the swapdev CIRCLEQ with a TAILQ and replace the manually rolled
list traversals with LIST_FOREACH.

ok beck@ krw@
Clean up the NTFS debug code - use uppercase names for the debug macros,
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@
Add comments to ACS table matching terminfo(5).
more ctype cleanups
checked by jca
Rework pmap to use dynamic P0 and P1 region allocation, instead of allocating
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.
Increase MAXDSIZ to 128MB, and BRKSIZ to 16MB, now that we can afford this.
Also double DFLDSIZ.
Increase NMBCLUSTERS a bit. Riding upon the kernel memory saved by the pmap
changes.
most obvious unsigned char casts for ctype
ok jca krw ingo
disable %n in printf(9); there is no need for it in the kernel besides
making format-string vulnerabilities exploitable; inspired by similar
change made by Kees Cook to Linux; ok deraadt@
Use iswupper() for wide characters, not isupper(); ok deraadt
netstat -Ar leaked some kernel pointers to unprivileged users.  Use
hideroot to show them only to root.
OK deraadt@
use u_char for buffers in yylex, for ctype calls
found by millert@, ok deraadt@
use u_char for buffers in yylex, for ctype calls
found by millert@, ok deraadt@
use u_char for buffers in yylex, for ctype calls
found by millert@, from deraadt@
miod@ increased the datasize of VAX from 40MB to 128MB. Now VAX can
use .xz files with big dictionaries like the other platforms.

ok brad@ sthen@
Document which keys need to be hold to enter the Open Firmware with a
standard PC keyboard.  From Daniel Dickman (didickman at gmail.com).