microsoft / mu_feature_mm_supv

Project Mu - Feature Repo - MM Supervisor
https://microsoft.github.io/mu
Other
46 stars 28 forks source link

Fix MMI entrypoint code for standalone binary integration #259

Closed kuqin12 closed 5 months ago

kuqin12 commented 5 months ago

Preface

Please ensure you have read the contribution docs prior to submitting the pull request. In particular, pull request guidelines.

Description

The existing nasmb code has various issues that cannot launch SMM properly.

This change fixed both the assembly code that can bring the system into x64 mode, as well as fixing the fixup logic from the initialization code to patch the appropriate content into the MMI entry routine.

For each item, place an "x" in between [ and ] if true. Example: [x]. (you can also check items in the GitHub UI)

How This Was Tested

This routine was integrated into Q35 and verified bootable till EndOfDxe.

Integration Instructions

N/A