]> git.baikalelectronics.ru Git - arm-tf.git/commit
Remove BSS section access by 'plat_print_gic' during crash reporting
authorSoby Mathew <soby.mathew@arm.com>
Mon, 1 Sep 2014 11:29:27 +0000 (12:29 +0100)
committerSoby Mathew <soby.mathew@arm.com>
Mon, 22 Sep 2014 17:20:31 +0000 (18:20 +0100)
commit6ab0391297cd0750189a158f959b88743bb35e33
tree1c9a0599e87ad39f06d6844c233929bddc13e463
parent8e0bbcb3a9be810ad46af36bee65aada70becb27
Remove BSS section access by 'plat_print_gic' during crash reporting

This patch avoids the problem of crash reporting mechanism accessing
global data in BSS by 'plat_print_gic_regs' for FVP platforms. Earlier
it depended on the global 'plat_config' object for the GIC Base address
in FVP platforms which would have caused exception if it were accessed
before the BSS was initialized. It is now fixed by dynamically
querying the V2M_SYS_ID to find the FVP model type and accordingly
selecting the appropriate GIC Base address.

This patch also fixes the 'plat_print_gic_regs' to use the correct GIC
Distributor base address for printing GICD_IS_PENDR register values
for both Juno and FVP platforms.

Fixes ARM-Software/tf-issues#236

Change-Id: I545c7b908b3111419bf27db0575ce86acf86784b
plat/fvp/include/plat_macros.S
plat/juno/include/plat_macros.S