1. Removed #ifdef SNP_DEBUG and used debug lib to output information
2. Rename PcdPlatformNoCsmSupport to PcdPlatformCsmSupport. 3 Removed #ifdef EFI_NO_CSM and used PcdPlatformCsmSupport. 4. Removed #ifdef ALIGNMENT from C Variable.c and added 2 files Variable/Pei/Ipf/VariableWorker.c and Variable/Pei/VariableWorker.c git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2487 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
44
EdkModulePkg/Universal/Variable/Pei/VariableWorker.c
Normal file
44
EdkModulePkg/Universal/Variable/Pei/VariableWorker.c
Normal file
@ -0,0 +1,44 @@
|
||||
/*++
|
||||
|
||||
Copyright (c) 2007, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
Module Name:
|
||||
|
||||
VariableWorker.c
|
||||
|
||||
Abstract:
|
||||
|
||||
Framework PEIM to provide the Variable functionality
|
||||
|
||||
--*/
|
||||
|
||||
#include <Variable.h>
|
||||
|
||||
|
||||
VARIABLE_HEADER *
|
||||
GetVariableByIndex (
|
||||
IN VARIABLE_INDEX_TABLE *IndexTable,
|
||||
IN UINT32 Count
|
||||
)
|
||||
{
|
||||
return (VARIABLE_HEADER *) (UINTN) (IndexTable->Index[Count] + ((UINTN) IndexTable->StartPtr & 0xFFFF0000));
|
||||
}
|
||||
|
||||
VOID
|
||||
VariableIndexTableUpdate (
|
||||
IN OUT VARIABLE_INDEX_TABLE *IndexTable,
|
||||
IN VARIABLE_HEADER *Variable
|
||||
)
|
||||
{
|
||||
IndexTable->Index[IndexTable->Length++] = (UINT16) (UINTN) Variable;
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user