]> git.proxmox.com Git - mirror_edk2.git/blob - UnixPkg/Library/SecDispatchTableLib/SecDispatchTableLib.c
da3d182f1e6bca5c4efc09135ac8b3bcf149f03d
[mirror_edk2.git] / UnixPkg / Library / SecDispatchTableLib / SecDispatchTableLib.c
1 /** @file
2 Allows an override of the SEC SEC PPI Dispatch Table. This allows
3 customized PPIs to be passed into the PEI Core.
4
5 Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 --*/
15
16 #include <PiPei.h>
17
18 /**
19 Allow an override of the Sec PPI Dispatch Table. This table contains PPIs passed
20 up from SEC to PEI. This function is responcible for allocating space for the
21 overridden table.
22
23
24 @param OriginalTable SECs default PPI dispatch table
25
26 @return OriginalTable or override of the table
27
28 **/
29 EFI_PEI_PPI_DESCRIPTOR *
30 EFIAPI
31 OverrideDispatchTable (
32 IN CONST EFI_PEI_PPI_DESCRIPTOR *OriginalTable
33 )
34 {
35 return (EFI_PEI_PPI_DESCRIPTOR *)OriginalTable;
36 }