Merge changes from topic "arm_fpga_resmem" into integration
* changes: fix(arm_fpga): reserve BL31 memory fix(arm_fpga): limit BL31 memory usage
This commit is contained in:
commit
e2e0444443
|
@ -144,6 +144,12 @@ static void fpga_prepare_dtb(void)
|
|||
panic();
|
||||
}
|
||||
|
||||
/* Reserve memory used by Trusted Firmware. */
|
||||
if (fdt_add_reserved_memory(fdt, "tf-a@80000000", BL31_BASE,
|
||||
BL31_LIMIT - BL31_BASE)) {
|
||||
WARN("Failed to add reserved memory node to DT\n");
|
||||
}
|
||||
|
||||
/* Check for the command line signature. */
|
||||
if (!strncmp(cmdline, "CMD:", 4)) {
|
||||
int chosen;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#if !ENABLE_PIE
|
||||
#define BL31_BASE UL(0x80000000)
|
||||
#define BL31_LIMIT UL(0x80100000)
|
||||
#define BL31_LIMIT UL(0x80070000)
|
||||
#else
|
||||
#define BL31_BASE UL(0x0)
|
||||
#define BL31_LIMIT UL(0x01000000)
|
||||
|
|
Loading…
Reference in New Issue