mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv: remove CONFIG_HV_RAM_SIZE
It's difficult to configure CONFIG_HV_RAM_SIZE properly at once. This patch not only remove CONFIG_HV_RAM_SIZE, but also we use ld linker script to dynamically get the size of HV RAM size. Tracked-On: #6663 Signed-off-by: Fei Li <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -6,7 +6,7 @@ MEMORY
|
||||
lowram : ORIGIN = 0, LENGTH = CONFIG_LOW_RAM_SIZE
|
||||
|
||||
/* 32 MBytes of RAM for HV */
|
||||
ram : ORIGIN = CONFIG_HV_RAM_START, LENGTH = CONFIG_HV_RAM_SIZE
|
||||
ram : ORIGIN = CONFIG_HV_RAM_START, LENGTH = 0x80000000 - CONFIG_HV_RAM_START
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
@@ -98,6 +98,7 @@ SECTIONS
|
||||
ld_bss_end = . ;
|
||||
} > ram
|
||||
|
||||
_ld_ram_size = LENGTH(ram) ;
|
||||
_ld_ram_end = _ld_ram_size + _ld_ram_start ;
|
||||
. = ALIGN(0x200000) ;
|
||||
_ld_ram_end = . ;
|
||||
ld_ram_size = _ld_ram_end - _ld_ram_start ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user