]> git.proxmox.com Git - mirror_edk2.git/commit
refine VariablePei driver to unify the algorithm of access VariableIndexTable among...
authoreric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 23 Jun 2009 08:30:04 +0000 (08:30 +0000)
committereric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 23 Jun 2009 08:30:04 +0000 (08:30 +0000)
commit841014ba97539efa5f69c5ffd874ffc55e426023
treedce1c5ab71c4298479dab40d944417ac78474fd3
parent48a9ea7b1bf6d6dfbcc98aa90eb71d476a838cbd
refine VariablePei driver to unify the algorithm of access VariableIndexTable among various archs.
1. record the distance of two neighboring VAR_ADDED type variables rather than the offset of each variable. As the field recording this info is UINT16 width, the latter causes in IA32/X64 platform, it can only cache those variables from offset 0 to offset 2^16; in IPF platform, from offset 0 to offset 2^18(extend the scope by left-shift the offset two bits).
when taking the former algorithm, the max range of caching variable is from offset 0 to offset 122*(2^16)

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8625 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Universal/Variable/Pei/Ipf/VariableWorker.c [deleted file]
MdeModulePkg/Universal/Variable/Pei/Variable.c
MdeModulePkg/Universal/Variable/Pei/Variable.h
MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
MdeModulePkg/Universal/Variable/Pei/VariableWorker.c [deleted file]