ARM: HYP/non-sec: Make variable gic_dist_addr as a local one
authortang yuantian <Yuantian.Tang@freescale.com>
Wed, 17 Dec 2014 04:58:04 +0000 (12:58 +0800)
committerYork Sun <yorksun@freescale.com>
Sat, 24 Jan 2015 04:29:14 +0000 (22:29 -0600)
commit5699274373e9bf569ffb4001a3d2ee0ebf1b6b03
treec2edd616c1b4318639366330a7defdb82d3ddf9c
parentdd04832d522918cad1d3ae894f94c5e59c04d567
ARM: HYP/non-sec: Make variable gic_dist_addr as a local one

Defining variable gic_dist_addr as a globe one prevents some
functions, which use it, from being used before relocation
which is the case in the deep sleep resume process on Freescale
SoC platforms.
Besides, we can always get the GIC base address by calling
get_gicd_base_address() without referring gic_dist_addr.

Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/arm/cpu/armv7/virt-v7.c