freebsd-skq/sys/powerpc/aim
royger 494dc32ba6 ddb: allow specifying the exact address of the symtab and strtab
When the FreeBSD kernel is loaded from Xen the symtab and strtab are
not loaded the same way as the native boot loader. This patch adds
three new global variables to ddb that can be used to specify the
exact position and size of those tables, so they can be directly used
as parameters to db_add_symbol_table. A new helper is introduced, so callers
that used to set ksym_start and ksym_end can use this helper to set the new
variables.

It also adds support for loading them from the Xen PVH port, that was
previously missing those tables.

Sponsored by: Citrix Systems R&D
Reviewed by:	kib

ddb/db_main.c:
 - Add three new global variables: ksymtab, kstrtab, ksymtab_size that
   can be used to specify the position and size of the symtab and
   strtab.
 - Use those new variables in db_init in order to call db_add_symbol_table.
 - Move the logic in db_init to db_fetch_symtab in order to set ksymtab,
   kstrtab, ksymtab_size from ksym_start and ksym_end.

ddb/ddb.h:
 - Add prototype for db_fetch_ksymtab.
 - Declate the extern variables ksymtab, kstrtab and ksymtab_size.

x86/xen/pv.c:
 - Add support for finding the symtab and strtab when booted as a Xen
   PVH guest. Since Xen loads the symtab and strtab as NetBSD expects
   to find them we have to adapt and use the same method.

amd64/amd64/machdep.c:
arm/arm/machdep.c:
i386/i386/machdep.c:
mips/mips/machdep.c:
pc98/pc98/machdep.c:
powerpc/aim/machdep.c:
powerpc/booke/machdep.c:
sparc64/sparc64/machdep.c:
 - Use the newly introduced db_fetch_ksymtab in order to set ksymtab,
   kstrtab and ksymtab_size.
2014-09-25 08:28:10 +00:00
..
interrupt.c Fix the Wii build, and remove an extraneous critical_enter(). 2013-10-16 04:11:42 +00:00
locore32.S - For kernel compiled only with KDTRACE_HOOKS and not any lock debugging 2013-11-25 07:38:45 +00:00
locore64.S We should have an isync after switching MSR[SF] in bootstrap. 2014-09-23 04:13:21 +00:00
locore.S
machdep.c ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
mmu_oea64.c Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
mmu_oea64.h Add POWER CPUs to the kernel's knowledge. This does not imply we currently 2013-09-09 12:51:24 +00:00
mmu_oea.c Change pmap_enter(9) interface to take flags parameter and superpage 2014-08-08 17:12:03 +00:00
moea64_if.m
moea64_native.c Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
mp_cpudep.c Unbreak non-SMP builds. This was broken by r259284. Also, reorganize the 2014-01-31 03:55:34 +00:00
slb.c Flip the semantic of M_NOWAIT to only require the allocation to not 2012-11-14 20:01:40 +00:00
trap_subr32.S A page mask size is 12-bits, not 11. 2014-05-15 04:18:06 +00:00
trap_subr64.S oea64 uses 4k pages, too. 2014-05-15 15:17:44 +00:00
trap.c Set the si_code appropriately for exception-caused signals. 2014-08-08 06:22:32 +00:00
uma_machdep.c Rename global cnt to vm_cnt to avoid shadowing. 2014-03-22 10:26:09 +00:00