Re: [edk2-devel] [PATCH v6 3/6] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data

2023-02-13 Thread Wu, Jiaxin
Ok, I will change to SmBase[] instead of SmBase[1]. > -Original Message- > From: Ni, Ray > Sent: Monday, February 13, 2023 5:35 PM > To: Wu, Jiaxin ; devel@edk2.groups.io > Cc: Dong, Eric ; Zeng, Star ; > Laszlo Ersek ; Gerd Hoffmann ; > Kumar, Rahul R > Subject: RE: [PATCH v6 3/6] Uef

Re: [edk2-devel] [PATCH v6 3/6] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data

2023-02-13 Thread Ni, Ray
> + UINT64SmBase[1]; Can you please use "SmBase[]" as what Marvin pointed out? Thanks, Ray -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100070): https://edk2.groups.io/g/devel/message/100070 Mute This Topic: https://groups.io/mt/

[edk2-devel] [PATCH v6 3/6] UefiCpuPkg/SmmBaseHob.h: Add SMM Base HOB Data

2023-02-13 Thread Wu, Jiaxin
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4337 The default SMBASE for the x86 processor is 0x3. When SMI happens, CPU runs the SMI handler at SMBASE+0x8000. Also, the SMM save state area is within SMBASE+0x1. One of the SMM initialization from CPU perspective is to relocate and