mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
HV: set CONFIG_HV_RAM_START as min addr when RELOC enabled
Previously the min load_addr for HV image is hard coded to 0x10000000 when CONFIG_RELOC is enabled, now use CONFIG_HV_RAM_START as its prefer minimum address like setting of CONFIG_PHYSICAL_START do in Linux kernel. With this patch, we can offload the CONFIG_HV_RAM_START algorithm to acrn-config or manually set it in scenario XML on some special boards. Tracked-On: #5275 Signed-off-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
* the macros involved are changed.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <multiboot.h>
|
||||
#ifdef CONFIG_MULTIBOOT2
|
||||
#include <multiboot2.h>
|
||||
@@ -103,7 +104,7 @@ relocatable_tag_start:
|
||||
.short MULTIBOOT2_HEADER_TAG_RELOCATABLE
|
||||
.short 0
|
||||
.long relocatable_tag_end - relocatable_tag_start
|
||||
.long 0x10000000 /* min_addr. TODO: change it to 2MB after fixing the load_addr issue */
|
||||
.long CONFIG_HV_RAM_START /* min_addr */
|
||||
.long 0x80000000 /* max_addr */
|
||||
.long 0x200000 /* image alignment */
|
||||
.long 1 /* preference: lowest possible address */
|
||||
|
Reference in New Issue
Block a user