mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-30 08:03:55 +00:00
Changed to coreboot patch not to call prog_segment_loaded in smm.
This commit is contained in:
parent
55c4864d3d
commit
dadfbeb3b3
@ -113,14 +113,16 @@ diff --git ./src/lib/cbfs.c ./src/lib/cbfs.c
|
|||||||
index 596abc5..f1928ce 100644
|
index 596abc5..f1928ce 100644
|
||||||
--- ./src/lib/cbfs.c
|
--- ./src/lib/cbfs.c
|
||||||
+++ ./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)
|
if (size != NULL)
|
||||||
*size = fsize;
|
*size = fsize;
|
||||||
|
|
||||||
- return rdev_mmap(&fh.data, 0, fsize);
|
- return rdev_mmap(&fh.data, 0, fsize);
|
||||||
+ void * buffer = rdev_mmap(&fh.data, 0, fsize);
|
+ void * buffer = rdev_mmap(&fh.data, 0, fsize);
|
||||||
+
|
+
|
||||||
|
+#ifndef __SMM__
|
||||||
+ prog_segment_loaded((uintptr_t)buffer, fsize, 0);
|
+ prog_segment_loaded((uintptr_t)buffer, fsize, 0);
|
||||||
|
+#endif
|
||||||
+
|
+
|
||||||
+ return buffer;
|
+ return buffer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user