mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 22:18:17 +00:00
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:
parent
36c4a27abc
commit
d8c97c1b2d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user