From dadfbeb3b329c7c025230f4c9932e22de1065bca Mon Sep 17 00:00:00 2001 From: persmule Date: Sat, 24 Feb 2018 15:27:21 +0800 Subject: [PATCH] Changed to coreboot patch not to call prog_segment_loaded in smm. --- patches/coreboot-4.7.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/coreboot-4.7.patch b/patches/coreboot-4.7.patch index 84698f1c..b386af7d 100644 --- a/patches/coreboot-4.7.patch +++ b/patches/coreboot-4.7.patch @@ -113,14 +113,16 @@ diff --git ./src/lib/cbfs.c ./src/lib/cbfs.c index 596abc5..f1928ce 100644 --- ./src/lib/cbfs.c +++ ./src/lib/cbfs.c -@@ -69,7 +69,11 @@ void *cbfs_boot_map_with_leak(const char *name, uint32_t type, size_t *size) +@@ -69,7 +69,13 @@ void *cbfs_boot_map_with_leak(const char *name, uint32_t type, size_t *size) if (size != NULL) *size = fsize; - return rdev_mmap(&fh.data, 0, fsize); + void * buffer = rdev_mmap(&fh.data, 0, fsize); + ++#ifndef __SMM__ + prog_segment_loaded((uintptr_t)buffer, fsize, 0); ++#endif + + return buffer; }