1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <amdblocks/memmap.h>
4 #include <console/console.h>
10 void fsp_get_smm_region(uintptr_t *start
, size_t *size
)
12 static uintptr_t smm_start
;
13 static size_t smm_size
;
20 struct range_entry tseg
;
22 if (fsp_find_range_hob(&tseg
, AMD_FSP_TSEG_HOB_GUID
.b
) != CB_SUCCESS
) {
23 printk(BIOS_ERR
, "unable to find TSEG HOB\n");
27 smm_start
= (uintptr_t)range_entry_base(&tseg
);
28 smm_size
= range_entry_size(&tseg
);