| 1 |
|
| 2 |
|
| 3 |
#include <arch/symbols.h> |
| 4 |
#include <console/console.h> |
| 5 |
#include <fsp/util.h> |
| 6 |
|
| 7 |
|
| 8 |
uintptr_t temp_memory_start; |
| 9 |
uintptr_t temp_memory_end; |
| 10 |
|
| 11 |
void report_fsp_output(void) |
| 12 |
{ |
| 13 |
const struct region fsp_car_region = region_create( |
| 14 |
temp_memory_start, temp_memory_end - temp_memory_start); |
| 15 |
const struct region coreboot_car_region = region_create( |
| 16 |
(uintptr_t)_car_region_start, (uintptr_t)_car_region_size); |
| 17 |
|
| 18 |
printk(BIOS_DEBUG, "FSP: reported temp_mem region: [0x%08lx,0x%08lx)\n", |
| 19 |
temp_memory_start, temp_memory_end); |
| 20 |
if (!region_is_subregion(&fsp_car_region, &coreboot_car_region)) { |
| 21 |
printk(BIOS_ERR, "Wrong CAR region used!\n"); |
| 22 |
printk(BIOS_ERR, "Adapt DCACHE_RAM_BASE and DCACHE_RAM_SIZE to match FSP-T\n"); |
| 23 |
} |
| 24 |
} |