mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00
Merge "fix(intel): update DDR range checking for Agilex5" into integration
This commit is contained in:
commit
108a1c1d9d
1 changed files with 4 additions and 1 deletions
|
@ -280,6 +280,9 @@ static bool is_fpga_config_buffer_full(void)
|
|||
|
||||
bool is_address_in_ddr_range(uint64_t addr, uint64_t size)
|
||||
{
|
||||
uint128_t dram_max_sz = (uint128_t)DRAM_BASE + (uint128_t)DRAM_SIZE;
|
||||
uint128_t dram_region_end = (uint128_t)addr + (uint128_t)size;
|
||||
|
||||
if (!addr && !size) {
|
||||
return true;
|
||||
}
|
||||
|
@ -289,7 +292,7 @@ bool is_address_in_ddr_range(uint64_t addr, uint64_t size)
|
|||
if (addr < BL31_LIMIT) {
|
||||
return false;
|
||||
}
|
||||
if (addr + size > DRAM_BASE + DRAM_SIZE) {
|
||||
if (dram_region_end > dram_max_sz) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue