+++ /dev/null
-/** @file\r
- Allows an override of the SEC SEC PPI Dispatch Table. This allows \r
- customized PPIs to be passed into the PEI Core.\r
-\r
-Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
-This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
---*/\r
-\r
-#include <PiPei.h>\r
-#include <Library/BaseMemoryLib.h>\r
-#include <Library/SecDispatchTableLib.h>\r
-\r
-\r
-/**\r
- Return the number of bytes that OverrideDispatchTable() will append to\r
- the dispatch table.\r
-\r
- @return Size of table in bytes OverrideDispatchTable() will return\r
-\r
-**/\r
-UINTN\r
-EFIAPI\r
-OverrideDispatchTableExtraSize (\r
- )\r
-{\r
- return 0;\r
-}\r
-\r
-\r
-/**\r
- Allow an override of the Sec PPI Dispatch Table. This table contains PPIs passed\r
- up from SEC to PEI. \r
-\r
- @param OriginalTable SECs default PPI dispatch table\r
- @param OriginalTableSize Size of SECs default PPI dispatch table\r
- @param NewTable New dispatch table\r
- @param NewTableSize Size of of the NewTable in bytes\r
-\r
- @return EFI_SUCCESS table was copied\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-OverrideDispatchTable (\r
- IN CONST EFI_PEI_PPI_DESCRIPTOR *OriginalTable,\r
- IN UINTN OriginalTableSize,\r
- IN OUT EFI_PEI_PPI_DESCRIPTOR *NewTable,\r
- IN UINTN NewTableSize\r
- )\r
-{\r
- CopyMem (NewTable, OriginalTable, OriginalTableSize);\r
-\r
- return EFI_SUCCESS;\r
-}\r