drivers/intel/fsp2_0: load and relocate FSPS in cbmem
The FSPS component loading was just loading to any memory address
listed in the header. That could be anywhere in the address space
including ramstage itself -- let alone corrupting the OS memory on
S3 resume. Remedy this by loading and relocating FSPS into cbmem.
The UEFI 2.4 header files include path are selected to provide the
types necessary for FSP relocation.
Signed-off-by: Aaron Durbin <email@example.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <firstname.lastname@example.org>
Reviewed-by: Andrey Petrov <email@example.com>
Reviewed-by: John Zhao <firstname.lastname@example.org>
5 files changed