summaryrefslogtreecommitdiff
path: root/src/cpu/x86/smm/smm_module_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/smm/smm_module_handler.c')
-rw-r--r--src/cpu/x86/smm/smm_module_handler.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpu/x86/smm/smm_module_handler.c b/src/cpu/x86/smm/smm_module_handler.c
index cab691d974..bd4149a797 100644
--- a/src/cpu/x86/smm/smm_module_handler.c
+++ b/src/cpu/x86/smm/smm_module_handler.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/io.h>
+#include <console/cbmem_console.h>
#include <console/console.h>
#include <commonlib/region.h>
#include <cpu/x86/smm.h>
@@ -48,6 +49,12 @@ static void smi_release_lock(void)
);
}
+void smm_get_cbmemc_buffer(void **buffer_out, size_t *size_out)
+{
+ *buffer_out = smm_runtime.cbmemc;
+ *size_out = smm_runtime.cbmemc_size;
+}
+
void io_trap_handler(int smif)
{
/* If a handler function handled a given IO trap, it