mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 10:31:59 +00:00
The hypervisor image size is determined at link time, but now it is calculated and stored in a global variable during mmu initialization, and the helper function reads from that variable. Change to calculate it inside helper function to avoid inconsistency. Tracked-On: #8738 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Reviewed-by: Fei Li <fei1.li@intel.com>
18 lines
396 B
C
18 lines
396 B
C
/*
|
|
* Copyright (C) 2018-2022 Intel Corporation.
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef RELOCATE_H
|
|
#define RELOCATE_H
|
|
|
|
extern void relocate(void);
|
|
extern uint64_t get_hv_image_delta(void);
|
|
extern uint64_t get_hv_image_base(void);
|
|
extern uint64_t get_hv_image_size(void);
|
|
|
|
/* external symbols that are helpful for relocation */
|
|
extern uint8_t _DYNAMIC[1];
|
|
|
|
#endif /* RELOCATE_H */
|