NVRAM是一个特殊的FV,Setup选项的Variable都存放在NVRAM。
1.NVRAM
包含:FV header,Variable data,guids(GUIDs will be stored at the highest address of NVRAM).
NVRAM signature is NVAR
2.Variable – a key and data pair to store information.
The information is passed in the PEI, DXE and runtime environment.
Variable Attributes
比较常见的三个属性是BS+RT+NV
BS:Boot Service
RT:Runtime Service
NV:Non Vocatile 注意:如果带有这个属性,可以在NVRAM中使用dumpstore 找到该Variable
如果只是在内存中前期使用,后期释放,不需要带NV属性
3.Service
1>GetVariable() – Returns the value of variable.
2>GetNextVariableName() – Enumerates the current variable names.
3>SetVariable() – Sets the value of a variable.
注意:
1. PEI phase only can use GetVariable().
2. DXE phase can use both GetVariable() and SetVariable().