Added SecDispatchTable library to allow custom PPIs to be passed up to into PEI Core. This will allow platform specific libraries to do thinks like map hardware devices directly into the emulator.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10882 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish
2010-09-16 20:23:33 +00:00
parent 45059fab2a
commit 249383cf15
8 changed files with 129 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
/** @file
Allows an override of the SEC SEC PPI Dispatch Table. This allows
customized PPIs to be passed into the PEI Core.
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
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.
--*/
#include <PiPei.h>
/**
Allow an override of the Sec PPI Dispatch Table. This table contains PPIs passed
up from SEC to PEI. This function is responcible for allocating space for the
overridden table.
@param OriginalTable SECs default PPI dispatch table
@return OriginalTable or override of the table
**/
EFI_PEI_PPI_DESCRIPTOR *
EFIAPI
OverrideDispatchTable (
IN CONST EFI_PEI_PPI_DESCRIPTOR *OriginalTable
)
{
return (EFI_PEI_PPI_DESCRIPTOR *)OriginalTable;
}