You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
Currently SBL supports SMM REBASE based on configuration. 1) When payload doesn't support SMM, SBL need enable SMM rebase. So SBL will rebase SMM to SMRAM and set SMRR to prevent SMRAM access out of SMM and prevent payload SMM driver dispatch. 2) When payload support SMM, SBL need disable SMM rebase. In this case SBL do nothing for SMM. Payload will do SMM rebase. In new UEFI payload (after stable branch 202311), SMM relocation was removed CPU SMM driver. To work with new UEFI payload, SMM relocation is expected in SBL, but SMRR should not be set so that SMM drivers in UEFI payload could be dispatched into SMRAM. This patch adds a new SMM rebase configuration that it rebase SMM but it doesn't set SMRR. Currently SBL supports rebase AUTO setting based on payload. This patch also add auto support. Signed-off-by: Guo Dong <guo.dong@intel.com>