bootmem: add new memory type for BL31
After CL:31122, we can finally define a memory type specific for BL31, to make sure BL31 is not loaded on other reserved area. Change-Id: Idbd9a7fe4b12af23de1519892936d8d88a000e2c Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://review.coreboot.org/c/31123 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
committed by
Patrick Georgi
parent
4929f43619
commit
dff29e0c65
@@ -13,10 +13,16 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <bootmem.h>
|
||||
#include <device/device.h>
|
||||
#include <symbols.h>
|
||||
#include <soc/emi.h>
|
||||
|
||||
void bootmem_platform_add_ranges(void)
|
||||
{
|
||||
bootmem_add_range(0x101000, 124 * KiB, BM_MEM_BL31);
|
||||
}
|
||||
|
||||
static void soc_read_resources(struct device *dev)
|
||||
{
|
||||
ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
|
||||
|
@@ -47,4 +47,6 @@ SECTIONS
|
||||
DRAM_START(0x40000000)
|
||||
POSTRAM_CBFS_CACHE(0x40000000, 2M)
|
||||
RAMSTAGE(0x40200000, 256K)
|
||||
|
||||
BL31(0x54600000, 0x60000)
|
||||
}
|
||||
|
Reference in New Issue
Block a user