1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sys/arm
Roger Pau Monné c98a2727cc 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
..
allwinner Fix typo in comment. 2014-09-20 09:18:58 +00:00
altera/socfpga Add Reset Manager driver. This driver provides generic way to reset 2014-09-11 18:12:28 +00:00
arm ddb: allow specifying the exact address of the symtab and strtab 2014-09-25 08:28:10 +00:00
at91 Mechanically convert to if_inc_counter(). 2014-09-19 09:20:16 +00:00
broadcom/bcm2835 sdhci.h has grown a dependency on sysctl.h, include the latter where needed. 2014-09-01 19:20:34 +00:00
cavium/cns11xx Mechanically convert to if_inc_counter(). 2014-09-19 09:20:16 +00:00
conf Create a common i.MX53 config and use it with the two existing i.MX53 2014-09-07 08:16:27 +00:00
freescale Use gic_decode_fdt() rather than a local routine to parse fdt interrupt 2014-09-14 23:48:18 +00:00
include Add a common routine for parsing FDT data describing an ARM GIC interrupt. 2014-09-14 21:21:03 +00:00
lpc Mechanically convert to if_inc_counter(). 2014-09-19 09:20:16 +00:00
mv Rename OF_xref_phandle() to OF_node_from_xref() and add a new function 2014-09-01 18:51:01 +00:00
rockchip Rename OF_xref_phandle() to OF_node_from_xref() and add a new function 2014-09-01 18:51:01 +00:00
s3c2xx0 Unify interrupts bit definition and usage. While here remove PSR_C_bit. 2014-09-10 15:25:15 +00:00
samsung/exynos Remove unnecessary inclusion of FDT headers. 2014-08-08 06:30:17 +00:00
ti Mechanically convert to if_inc_counter(). 2014-09-19 09:20:16 +00:00
versatile Move if_smc_fdt.c to live in sys/dev/smc. It's not specific to the ARM 2014-09-10 10:59:17 +00:00
xilinx Fixes and enhancements for the if_cgem driver... 2014-09-03 17:51:03 +00:00
xscale Mechanically convert to if_inc_counter(). 2014-09-19 09:20:16 +00:00