On Sep 6, 2014, at 3:52 AM, stanley.ganyezu <[email protected]> wrote:

> Hi Experts,
>          Currently, X86 cpu run SMM in 32-bit. There are a lot of limitation 
> about 32-bit. I want to run SMM in 64-bit to access whole cpu address 
> space,but I can’t figure it out.

UEFI/PI systems run SMM in 64-bit mode? See UEFI Platform Initialization 
Specification Version 1.3. http://www.uefi.org/specifications

> Can you give me some tips? Any suggestion will be appreciated.
>  
>  

Put the system in Long mode, this requires page tables. The DXE IPL and 64-bit 
SEC in Ovmf both have code that transitions to 64-bit long mode.
https://svn.code.sf.net/p/edk2/code/trunk/edk2/MdeModulePkg/Core/DxeIplPeim/
https://svn.code.sf.net/p/edk2/code/trunk/edk2/OvmfPkg/ResetVector/

It is really dangerous to modify the SMM code if you do not fully understand 
it, since SMM runs at a higher privilege than the OS it is an attack point that 
the OS can not defend against. 

Thanks,

Andrew Fish

>  
>  
>  
>  
>  
> Best wishes,
> Stanley
>  
>  
> ------------------------------------------------------------------------------
> Slashdot TV.  
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to