hv: fix broken relocation feature

commit a71dedecd4 ("hv: treewide: fix 'Array has no bounds specified")
misses one '&', which breaks the hypervisor relocation feature.

Tracked-On: #861
Signed-off-by: Zide Chen <zide.chen@intel.com>
This commit is contained in:
Zide Chen 2018-08-28 13:21:52 -07:00 committed by lijinxia
parent 36c4a27abc
commit d8c97c1b2d

View File

@ -104,7 +104,7 @@ void _relocate(void)
* Need to subtract the relocation delta to get the correct
* absolute addresses
*/
trampoline_end = (uint64_t)_ld_trampoline_end - delta;
trampoline_end = (uint64_t)(&_ld_trampoline_end) - delta;
primary_32_start = (uint64_t)(&cpu_primary_start_32) - delta;
primary_32_end = (uint64_t)(&cpu_primary_start_64) - delta;