Fix style. Somehow I managed to lost a space when copy&paste.

Pointed out by:	stefanf
- Avoid use of deprecated KRB5 functions.
Mark the 'lapics' and 'ioapics' arrays here static since they are
private to this file.  The 'lapics' array was actually shadowing a
completely different 'lapics' array that is private to local_apic.c.

Reported by:	bde
MFC after:	2 weeks
Remove the fragments which are not needed on FreeBSD.  The caltech
malloc hardly would ever be updated.

Reviewed by:  bde, kan
MFC after:    2 weeks
Use xmalloc() instead of malloc() in the places where malloc() calls
are assumed to not fail.

Make the xcalloc() calling conventions follow the calloc(3) calling
conventions and replace unchecked calls to calloc() with calls to
xcalloc().

Remove redundand declarations from xmalloc.c, which are already
present in rtld.h.

Reviewed by:	kan
Discussed with:	bde
MFC after:	2 weeks
Fix return type of mips pmap_kextract()

The return type should be vm_paddr_t, not vm_offset_t.
Add snd_cmi, snd_csa and snd_emu10kx to GENERIC on i386 and amd64.

The GPL infected parts which were blocking the inclusion of snd_csa
and snd_emu10kx in GENERIC have recently been removed from the tree.
I'm also adding snd_cmi to GENERIC, which I originally intended to
add when we enabled sound support by default.

Discussed with:	jhb, pfg, Yuriy Tsibizov <yuriy.tsibizov@gfk.ru>
Approved by:	jhb
Small cleanup of the code. No functional change (in FreeBSD kernel).

MFC after: 1 week.
Update snd_cmi, snd_csa and snd_emu10kx status.
Add ACPI_LV_REPAIR debug level, available since ACPICA 20091214 (r200553).

MFC after:	3 days
Fix PMC syscall on 64-bit big endian systems.

Sycall argument is pointer to array of register_t values. Casting it to
pointer to structure with fields of size smaller then register_t we rely
on compiler-dependent memory layout of structure.

Tested on: mips64 and amd64 systems
Fix base vaddr detection for ELF binaries. PT_LOAD with offset 0 is not
mandatory for ELF binaries so we'll use the segment with offset less then
alignment and align it appropriately (which covers pt_offset == 0 case)
Move PMC hook invocation to cpu_intr. The idea is the same as with ast()
call but there is no reason to implement it in assembler.
Rework MIPS PMC code:

- Replace MIPS24K-specific code with more generic framework that will
    make adding new CPU support easier
- Add MIPS24K support for new framework
- Limit backtrace depth to 1 for stability reasons and add option
    HWPMC_MIPS_BACKTRACE to override this limitation
Make reusable part of code have mips prefix, not mips24
Correct a function prototype.

Submitted by:	"Anders Magnusson" <ragge at ludd.ltu.se>, via joel
Improve FDT handling in loader(8) and make it more robust.

o Fix buffer overflows when using a long property body in node paths.
o Fix loop end condition when iterating through the symbol table.
o Better error handling during node modification, better problem reporting.
o Eliminate build time warnings.

Submitted by:	Lukasz Wojcik
Obtained from:	Semihalf
MFC after:	1 week
Fix an incorrect parameter usage here.

Submitted by:	monthadar@gmail.com
Sprinkle some style(9) things around.
Add some further debugging to try and aid tracking down what the state of
things were just before a full software queue is drained.