]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c
Fix the SMRAM caching range base and size. The original code uses the biggest SMRAM...
authorjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Mar 2010 05:47:41 +0000 (05:47 +0000)
committerjgong5 <jgong5@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 9 Mar 2010 05:47:41 +0000 (05:47 +0000)
commit40e8cca588c7bcb63e40dd45be15f584b7902e66
tree27a14f2d350ea6a32d69be93904c6188d40d4299
parent44a8883ec0c42b5bc5b27be2856675b3baf93ad1
Fix the SMRAM caching range base and size. The original code uses the biggest SMRAM range base and size to set the cache attribute by gDS->SetMemorySpaceAttributes(). This is not correct because the platform code might split the TSEG into several ranges. The fix searches and joins all the adjacent ranges to the biggest SMRAM range into a cacheable range so that TSEG can be cached as a whole.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10213 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c