summaryrefslogtreecommitdiffstats
path: root/src/cpu/x86/Kconfig
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-19 14:22:36 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-05-23 13:53:26 +0000
commitea2c1d357cccf4ee84473d304c880250fbd97080 (patch)
tree07e5ce3cd6c1d171ce868c71cc51e930b6e80ba2 /src/cpu/x86/Kconfig
parentbf378a0fdf5b57b9d9122b56634362222d846571 (diff)
downloadcoreboot-ea2c1d357cccf4ee84473d304c880250fbd97080.tar.gz
coreboot-ea2c1d357cccf4ee84473d304c880250fbd97080.tar.bz2
coreboot-ea2c1d357cccf4ee84473d304c880250fbd97080.zip
cpu/x86/smm: Remove heap
Currently no smihandler uses heap. coreboot's heap manager also is quite limited in what it will free (only the latest alloc). This makes it a bad idea to use it inside the smihandler, as depending on the alloc usage the heap might actually be full at some point, breaking the smihandler. This also reduces the ramstage by 448 bytes on google/vilboz. Change-Id: I70cd822be17c1efe13c94a9dbd2e1038808b9c56 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64521 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/cpu/x86/Kconfig')
-rw-r--r--src/cpu/x86/Kconfig7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cpu/x86/Kconfig b/src/cpu/x86/Kconfig
index 658d2aaf74f1..f34a2626f886 100644
--- a/src/cpu/x86/Kconfig
+++ b/src/cpu/x86/Kconfig
@@ -124,13 +124,6 @@ config SMM_LEGACY_ASEG
if HAVE_SMI_HANDLER && !SMM_LEGACY_ASEG
-config SMM_MODULE_HEAP_SIZE
- hex
- default 0x4000
- help
- This option determines the size of the heap within the SMM handler
- modules.
-
config SMM_MODULE_STACK_SIZE
hex
default 0x800 if ARCH_RAMSTAGE_X86_64