Update to fix minor coding style issues.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5257 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2008-05-21 04:03:40 +00:00
parent 23c98c9417
commit f45af90b01
20 changed files with 99 additions and 258 deletions

View File

@ -76,8 +76,7 @@ PeiLoadFile (
OUT EFI_PHYSICAL_ADDRESS *ImageAddress, OUT EFI_PHYSICAL_ADDRESS *ImageAddress,
OUT UINT64 *ImageSize, OUT UINT64 *ImageSize,
OUT EFI_PHYSICAL_ADDRESS *EntryPoint OUT EFI_PHYSICAL_ADDRESS *EntryPoint
) );
;
@ -93,8 +92,7 @@ PeiLoadFile (
EFI_STATUS EFI_STATUS
DxeIplFindDxeCore ( DxeIplFindDxeCore (
OUT EFI_PEI_FILE_HANDLE *FileHandle OUT EFI_PEI_FILE_HANDLE *FileHandle
) );
;
@ -111,8 +109,7 @@ DxeIplFindDxeCore (
EFI_STATUS EFI_STATUS
GetImageReadFunction ( GetImageReadFunction (
IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext
) );
;
@ -190,8 +187,7 @@ EFIAPI
PeimInitializeDxeIpl ( PeimInitializeDxeIpl (
IN EFI_PEI_FILE_HANDLE FfsHandle, IN EFI_PEI_FILE_HANDLE FfsHandle,
IN EFI_PEI_SERVICES **PeiServices IN EFI_PEI_SERVICES **PeiServices
) );
;
#endif #endif

View File

@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
processed. OutputBuffer OutputBuffer is processed. OutputBuffer OutputBuffer is
allocated from PEI permanent memory and contains allocated from PEI permanent memory and contains
the new section stream. the new section stream.
@param CompressionSection A pointer to the input buffer, which contains @param InputSection A pointer to the input buffer, which contains
the input section to be processed. the input section to be processed.
@param OutputBuffer A pointer to a caller-allocated buffer, whose @param OutputBuffer A pointer to a caller-allocated buffer, whose
size is specified by the contents of OutputSize. size is specified by the contents of OutputSize.
@ -75,7 +75,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_STATUS EFI_STATUS
CustomGuidedSectionExtract ( CustomGuidedSectionExtract (
IN CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This, IN CONST EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This,
IN CONST VOID *CompressionSection, IN CONST VOID *InputSection,
OUT VOID **OutputBuffer, OUT VOID **OutputBuffer,
OUT UINTN *OutputSize, OUT UINTN *OutputSize,
OUT UINT32 *AuthenticationStatus OUT UINT32 *AuthenticationStatus
@ -109,7 +109,7 @@ Decompress (
IN CONST EFI_COMPRESSION_SECTION *CompressionSection, IN CONST EFI_COMPRESSION_SECTION *CompressionSection,
OUT VOID **OutputBuffer, OUT VOID **OutputBuffer,
OUT UINTN *OutputSize OUT UINTN *OutputSize
); );
BOOLEAN gInMemory = FALSE; BOOLEAN gInMemory = FALSE;

View File

@ -1,7 +1,8 @@
#/**@file #/** @file
#
# IDT vector entry. # IDT vector entry.
# #
# Copyright (c) 2007 - 2008, Intel Corporation # Copyright (c) 2007 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # 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 # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,4 +1,5 @@
;/** @file ;/** @file
;
; IDT vector entry. ; IDT vector entry.
; ;
; Copyright (c) 2007 - 2008, Intel Corporation. <BR> ; Copyright (c) 2007 - 2008, Intel Corporation. <BR>

View File

@ -32,7 +32,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
EFI_STATUS EFI_STATUS
EFIAPI
PeiImageRead ( PeiImageRead (
IN VOID *FileHandle, IN VOID *FileHandle,
IN UINTN FileOffset, IN UINTN FileOffset,

View File

@ -116,8 +116,7 @@ typedef union {
UINTN UINTN
CreateIdentityMappingPageTables ( CreateIdentityMappingPageTables (
VOID VOID
) );
;

View File

@ -1,18 +1,19 @@
#/** @file #/** @file
#
# Component description file for Ebc module. # Component description file for Ebc module.
# #
# This module for the EBC virtual machine implementation produces # This module for the EBC virtual machine implementation produces
# EBC and EBC debug support protocols. # EBC and EBC debug support protocols.
# Copyright (c) 2006 - 2007, Intel Corporation
# #
# Copyright (c) 2006 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # 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 # which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php # http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
# #
#
#**/ #**/
[Defines] [Defines]

View File

@ -1,7 +1,7 @@
/** @file /** @file
Contains code that implements the virtual machine. Contains code that implements the virtual machine.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -64,7 +64,6 @@ UINT64
@return The decoded offset. @return The decoded offset.
**/ **/
STATIC
INT16 INT16
VmReadIndex16 ( VmReadIndex16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -81,7 +80,6 @@ VmReadIndex16 (
@return Converted index per EBC VM specification. @return Converted index per EBC VM specification.
**/ **/
STATIC
INT32 INT32
VmReadIndex32 ( VmReadIndex32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -98,7 +96,6 @@ VmReadIndex32 (
@return Converted index per EBC VM specification @return Converted index per EBC VM specification
**/ **/
STATIC
INT64 INT64
VmReadIndex64 ( VmReadIndex64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -114,7 +111,6 @@ VmReadIndex64 (
@return The 8-bit value from the memory adress. @return The 8-bit value from the memory adress.
**/ **/
STATIC
UINT8 UINT8
VmReadMem8 ( VmReadMem8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -130,7 +126,6 @@ VmReadMem8 (
@return The 16-bit value from the memory adress. @return The 16-bit value from the memory adress.
**/ **/
STATIC
UINT16 UINT16
VmReadMem16 ( VmReadMem16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -146,7 +141,6 @@ VmReadMem16 (
@return The 32-bit value from the memory adress. @return The 32-bit value from the memory adress.
**/ **/
STATIC
UINT32 UINT32
VmReadMem32 ( VmReadMem32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -162,7 +156,6 @@ VmReadMem32 (
@return The 64-bit value from the memory adress. @return The 64-bit value from the memory adress.
**/ **/
STATIC
UINT64 UINT64
VmReadMem64 ( VmReadMem64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -178,7 +171,6 @@ VmReadMem64 (
@return The natural value at address Addr. @return The natural value at address Addr.
**/ **/
STATIC
UINTN UINTN
VmReadMemN ( VmReadMemN (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -208,7 +200,6 @@ VmReadMemN (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem8 ( VmWriteMem8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -239,7 +230,6 @@ VmWriteMem8 (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem16 ( VmWriteMem16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -270,7 +260,6 @@ VmWriteMem16 (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem32 ( VmWriteMem32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -290,7 +279,6 @@ VmWriteMem32 (
@return The raw unsigned 16-bit value from the code stream. @return The raw unsigned 16-bit value from the code stream.
**/ **/
STATIC
UINT16 UINT16
VmReadCode16 ( VmReadCode16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -309,7 +297,6 @@ VmReadCode16 (
@return The raw unsigned 32-bit value from the code stream. @return The raw unsigned 32-bit value from the code stream.
**/ **/
STATIC
UINT32 UINT32
VmReadCode32 ( VmReadCode32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -328,7 +315,6 @@ VmReadCode32 (
@return The raw unsigned 64-bit value from the code stream. @return The raw unsigned 64-bit value from the code stream.
**/ **/
STATIC
UINT64 UINT64
VmReadCode64 ( VmReadCode64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -349,7 +335,6 @@ VmReadCode64 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT8 INT8
VmReadImmed8 ( VmReadImmed8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -370,7 +355,6 @@ VmReadImmed8 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT16 INT16
VmReadImmed16 ( VmReadImmed16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -391,7 +375,6 @@ VmReadImmed16 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT32 INT32
VmReadImmed32 ( VmReadImmed32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -412,7 +395,6 @@ VmReadImmed32 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT64 INT64
VmReadImmed64 ( VmReadImmed64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -438,7 +420,6 @@ VmReadImmed64 (
adjust for the stack gap and return the modified address. adjust for the stack gap and return the modified address.
**/ **/
STATIC
UINTN UINTN
ConvertStackAddr ( ConvertStackAddr (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -463,7 +444,6 @@ ConvertStackAddr (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteDataManip ( ExecuteDataManip (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -481,7 +461,6 @@ ExecuteDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteBREAK ( ExecuteBREAK (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -512,7 +491,6 @@ ExecuteBREAK (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteJMP ( ExecuteJMP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -529,7 +507,6 @@ ExecuteJMP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteJMP8 ( ExecuteJMP8 (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -551,7 +528,6 @@ ExecuteJMP8 (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCALL ( ExecuteCALL (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -568,7 +544,6 @@ ExecuteCALL (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteRET ( ExecuteRET (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -586,7 +561,6 @@ ExecuteRET (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCMP ( ExecuteCMP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -604,7 +578,6 @@ ExecuteCMP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCMPI ( ExecuteCMPI (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -631,7 +604,6 @@ ExecuteCMPI (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVxx ( ExecuteMOVxx (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -658,7 +630,6 @@ ExecuteMOVxx (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVI ( ExecuteMOVI (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -678,7 +649,6 @@ ExecuteMOVI (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVIn ( ExecuteMOVIn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -698,7 +668,6 @@ ExecuteMOVIn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVREL ( ExecuteMOVREL (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -715,7 +684,6 @@ ExecuteMOVREL (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePUSHn ( ExecutePUSHn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -732,7 +700,6 @@ ExecutePUSHn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePUSH ( ExecutePUSH (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -749,7 +716,6 @@ ExecutePUSH (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePOPn ( ExecutePOPn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -766,7 +732,6 @@ ExecutePOPn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePOP ( ExecutePOP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -789,7 +754,6 @@ ExecutePOP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteSignedDataManip ( ExecuteSignedDataManip (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -812,7 +776,6 @@ ExecuteSignedDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteUnsignedDataManip ( ExecuteUnsignedDataManip (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -830,7 +793,6 @@ ExecuteUnsignedDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteLOADSP ( ExecuteLOADSP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -848,7 +810,6 @@ ExecuteLOADSP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteSTORESP ( ExecuteSTORESP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -873,7 +834,6 @@ ExecuteSTORESP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVsnd ( ExecuteMOVsnd (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -898,7 +858,6 @@ ExecuteMOVsnd (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVsnw ( ExecuteMOVsnw (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -920,7 +879,6 @@ ExecuteMOVsnw (
@return ~Op2 @return ~Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteNOT ( ExecuteNOT (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -941,7 +899,6 @@ ExecuteNOT (
@return Op2 * -1 @return Op2 * -1
**/ **/
STATIC
UINT64 UINT64
ExecuteNEG ( ExecuteNEG (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -962,7 +919,6 @@ ExecuteNEG (
@return Op1 + Op2 @return Op1 + Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteADD ( ExecuteADD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -983,7 +939,6 @@ ExecuteADD (
@return Op1 - Op2 @return Op1 - Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteSUB ( ExecuteSUB (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1004,7 +959,6 @@ ExecuteSUB (
@return Op1 * Op2 @return Op1 * Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMUL ( ExecuteMUL (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1025,7 +979,6 @@ ExecuteMUL (
@return (unsigned)Op1 * (unsigned)Op2 @return (unsigned)Op1 * (unsigned)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMULU ( ExecuteMULU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1046,7 +999,6 @@ ExecuteMULU (
@return Op1 / Op2 @return Op1 / Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteDIV ( ExecuteDIV (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1067,7 +1019,6 @@ ExecuteDIV (
@return (unsigned)Op1 / (unsigned)Op2 @return (unsigned)Op1 / (unsigned)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteDIVU ( ExecuteDIVU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1088,7 +1039,6 @@ ExecuteDIVU (
@return Op1 MODULUS Op2 @return Op1 MODULUS Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMOD ( ExecuteMOD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1109,7 +1059,6 @@ ExecuteMOD (
@return Op1 UNSIGNED_MODULUS Op2 @return Op1 UNSIGNED_MODULUS Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMODU ( ExecuteMODU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1130,7 +1079,6 @@ ExecuteMODU (
@return Op1 AND Op2 @return Op1 AND Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteAND ( ExecuteAND (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1151,7 +1099,6 @@ ExecuteAND (
@return Op1 OR Op2 @return Op1 OR Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteOR ( ExecuteOR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1172,7 +1119,6 @@ ExecuteOR (
@return Op1 XOR Op2 @return Op1 XOR Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteXOR ( ExecuteXOR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1193,7 +1139,6 @@ ExecuteXOR (
@return Op1 << Op2 @return Op1 << Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteSHL ( ExecuteSHL (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1214,7 +1159,6 @@ ExecuteSHL (
@return Op1 >> Op2 (unsigned operands) @return Op1 >> Op2 (unsigned operands)
**/ **/
STATIC
UINT64 UINT64
ExecuteSHR ( ExecuteSHR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1235,7 +1179,6 @@ ExecuteSHR (
@return Op1 >> Op2 (signed) @return Op1 >> Op2 (signed)
**/ **/
STATIC
UINT64 UINT64
ExecuteASHR ( ExecuteASHR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1256,7 +1199,6 @@ ExecuteASHR (
@return (INT64)(INT8)Op2 @return (INT64)(INT8)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDB ( ExecuteEXTNDB (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1277,7 +1219,6 @@ ExecuteEXTNDB (
@return (INT64)(INT16)Op2 @return (INT64)(INT16)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDW ( ExecuteEXTNDW (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1298,7 +1239,6 @@ ExecuteEXTNDW (
@return (INT64)(INT32)Op2 @return (INT64)(INT32)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDD ( ExecuteEXTNDD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -1613,7 +1553,6 @@ Done:
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVxx ( ExecuteMOVxx (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -1883,7 +1822,6 @@ ExecuteMOVxx (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteBREAK ( ExecuteBREAK (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2009,7 +1947,6 @@ ExecuteBREAK (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteJMP ( ExecuteJMP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2172,7 +2109,6 @@ ExecuteJMP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteJMP8 ( ExecuteJMP8 (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2233,7 +2169,6 @@ ExecuteJMP8 (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVI ( ExecuteMOVI (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2352,7 +2287,6 @@ ExecuteMOVI (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVIn ( ExecuteMOVIn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2455,7 +2389,6 @@ ExecuteMOVIn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVREL ( ExecuteMOVREL (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2562,7 +2495,6 @@ ExecuteMOVREL (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVsnw ( ExecuteMOVsnw (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2656,7 +2588,6 @@ ExecuteMOVsnw (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteMOVsnd ( ExecuteMOVsnd (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2742,7 +2673,6 @@ ExecuteMOVsnd (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePUSHn ( ExecutePUSHn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2802,7 +2732,6 @@ ExecutePUSHn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePUSH ( ExecutePUSH (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2879,7 +2808,6 @@ ExecutePUSH (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePOPn ( ExecutePOPn (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -2939,7 +2867,6 @@ ExecutePOPn (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecutePOP ( ExecutePOP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -3024,7 +2951,6 @@ ExecutePOP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCALL ( ExecuteCALL (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -3158,7 +3084,6 @@ ExecuteCALL (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteRET ( ExecuteRET (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -3207,7 +3132,6 @@ ExecuteRET (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCMP ( ExecuteCMP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -3369,7 +3293,6 @@ ExecuteCMP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteCMPI ( ExecuteCMPI (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -3550,7 +3473,6 @@ ExecuteCMPI (
@return ~Op2 @return ~Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteNOT ( ExecuteNOT (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3575,7 +3497,6 @@ ExecuteNOT (
@return Op2 * -1 @return Op2 * -1
**/ **/
STATIC
UINT64 UINT64
ExecuteNEG ( ExecuteNEG (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3600,7 +3521,6 @@ ExecuteNEG (
@return Op1 + Op2 @return Op1 + Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteADD ( ExecuteADD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3625,7 +3545,6 @@ ExecuteADD (
@return Op1 - Op2 @return Op1 - Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteSUB ( ExecuteSUB (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3654,7 +3573,6 @@ ExecuteSUB (
@return Op1 * Op2 @return Op1 * Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMUL ( ExecuteMUL (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3683,7 +3601,6 @@ ExecuteMUL (
@return (unsigned)Op1 * (unsigned)Op2 @return (unsigned)Op1 * (unsigned)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMULU ( ExecuteMULU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3712,7 +3629,6 @@ ExecuteMULU (
@return Op1 / Op2 @return Op1 / Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteDIV ( ExecuteDIV (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3756,7 +3672,6 @@ ExecuteDIV (
@return (unsigned)Op1 / (unsigned)Op2 @return (unsigned)Op1 / (unsigned)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteDIVU ( ExecuteDIVU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3802,7 +3717,6 @@ ExecuteDIVU (
@return Op1 MODULUS Op2 @return Op1 MODULUS Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMOD ( ExecuteMOD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3842,7 +3756,6 @@ ExecuteMOD (
@return Op1 UNSIGNED_MODULUS Op2 @return Op1 UNSIGNED_MODULUS Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteMODU ( ExecuteMODU (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3882,7 +3795,6 @@ ExecuteMODU (
@return Op1 AND Op2 @return Op1 AND Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteAND ( ExecuteAND (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3907,7 +3819,6 @@ ExecuteAND (
@return Op1 OR Op2 @return Op1 OR Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteOR ( ExecuteOR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3932,7 +3843,6 @@ ExecuteOR (
@return Op1 XOR Op2 @return Op1 XOR Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteXOR ( ExecuteXOR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3957,7 +3867,6 @@ ExecuteXOR (
@return Op1 << Op2 @return Op1 << Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteSHL ( ExecuteSHL (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -3986,7 +3895,6 @@ ExecuteSHL (
@return Op1 >> Op2 (unsigned operands) @return Op1 >> Op2 (unsigned operands)
**/ **/
STATIC
UINT64 UINT64
ExecuteSHR ( ExecuteSHR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4015,7 +3923,6 @@ ExecuteSHR (
@return Op1 >> Op2 (signed) @return Op1 >> Op2 (signed)
**/ **/
STATIC
UINT64 UINT64
ExecuteASHR ( ExecuteASHR (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4044,7 +3951,6 @@ ExecuteASHR (
@return (INT64)(INT8)Op2 @return (INT64)(INT8)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDB ( ExecuteEXTNDB (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4078,7 +3984,6 @@ ExecuteEXTNDB (
@return (INT64)(INT16)Op2 @return (INT64)(INT16)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDW ( ExecuteEXTNDW (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4119,7 +4024,6 @@ ExecuteEXTNDW (
@return (INT64)(INT32)Op2 @return (INT64)(INT32)Op2
**/ **/
STATIC
UINT64 UINT64
ExecuteEXTNDD ( ExecuteEXTNDD (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4157,7 +4061,6 @@ ExecuteEXTNDD (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteSignedDataManip ( ExecuteSignedDataManip (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -4188,7 +4091,6 @@ ExecuteSignedDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteUnsignedDataManip ( ExecuteUnsignedDataManip (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -4220,7 +4122,6 @@ ExecuteUnsignedDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteDataManip ( ExecuteDataManip (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4370,7 +4271,6 @@ ExecuteDataManip (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteLOADSP ( ExecuteLOADSP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -4425,7 +4325,6 @@ ExecuteLOADSP (
@retval EFI_SUCCESS The instruction is executed successfully. @retval EFI_SUCCESS The instruction is executed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
ExecuteSTORESP ( ExecuteSTORESP (
IN VM_CONTEXT *VmPtr IN VM_CONTEXT *VmPtr
@ -4497,7 +4396,6 @@ ExecuteSTORESP (
@return The decoded offset. @return The decoded offset.
**/ **/
STATIC
INT16 INT16
VmReadIndex16 ( VmReadIndex16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4569,7 +4467,6 @@ VmReadIndex16 (
@return Converted index per EBC VM specification. @return Converted index per EBC VM specification.
**/ **/
STATIC
INT32 INT32
VmReadIndex32 ( VmReadIndex32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4633,7 +4530,6 @@ VmReadIndex32 (
@return Converted index per EBC VM specification @return Converted index per EBC VM specification
**/ **/
STATIC
INT64 INT64
VmReadIndex64 ( VmReadIndex64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4710,7 +4606,6 @@ VmReadIndex64 (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem8 ( VmWriteMem8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4749,7 +4644,6 @@ VmWriteMem8 (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem16 ( VmWriteMem16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4813,7 +4707,6 @@ VmWriteMem16 (
@retval Other Some error occurs when writing data to the address. @retval Other Some error occurs when writing data to the address.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
VmWriteMem32 ( VmWriteMem32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -4991,7 +4884,6 @@ VmWriteMemN (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT8 INT8
VmReadImmed8 ( VmReadImmed8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5018,7 +4910,6 @@ VmReadImmed8 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT16 INT16
VmReadImmed16 ( VmReadImmed16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5061,7 +4952,6 @@ VmReadImmed16 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT32 INT32
VmReadImmed32 ( VmReadImmed32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5099,7 +4989,6 @@ VmReadImmed32 (
@return Signed data of the requested size from the specified address. @return Signed data of the requested size from the specified address.
**/ **/
STATIC
INT64 INT64
VmReadImmed64 ( VmReadImmed64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5141,7 +5030,6 @@ VmReadImmed64 (
@return The raw unsigned 16-bit value from the code stream. @return The raw unsigned 16-bit value from the code stream.
**/ **/
STATIC
UINT16 UINT16
VmReadCode16 ( VmReadCode16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5182,7 +5070,6 @@ VmReadCode16 (
@return The raw unsigned 32-bit value from the code stream. @return The raw unsigned 32-bit value from the code stream.
**/ **/
STATIC
UINT32 UINT32
VmReadCode32 ( VmReadCode32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5217,7 +5104,6 @@ VmReadCode32 (
@return The raw unsigned 64-bit value from the code stream. @return The raw unsigned 64-bit value from the code stream.
**/ **/
STATIC
UINT64 UINT64
VmReadCode64 ( VmReadCode64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5256,7 +5142,6 @@ VmReadCode64 (
@return The 8-bit value from the memory adress. @return The 8-bit value from the memory adress.
**/ **/
STATIC
UINT8 UINT8
VmReadMem8 ( VmReadMem8 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5282,7 +5167,6 @@ VmReadMem8 (
@return The 16-bit value from the memory adress. @return The 16-bit value from the memory adress.
**/ **/
STATIC
UINT16 UINT16
VmReadMem16 ( VmReadMem16 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5314,7 +5198,6 @@ VmReadMem16 (
@return The 32-bit value from the memory adress. @return The 32-bit value from the memory adress.
**/ **/
STATIC
UINT32 UINT32
VmReadMem32 ( VmReadMem32 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5350,7 +5233,6 @@ VmReadMem32 (
@return The 64-bit value from the memory adress. @return The 64-bit value from the memory adress.
**/ **/
STATIC
UINT64 UINT64
VmReadMem64 ( VmReadMem64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5400,7 +5282,6 @@ VmReadMem64 (
adjust for the stack gap and return the modified address. adjust for the stack gap and return the modified address.
**/ **/
STATIC
UINTN UINTN
ConvertStackAddr ( ConvertStackAddr (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -5421,7 +5302,6 @@ ConvertStackAddr (
@return The natural value at address Addr. @return The natural value at address Addr.
**/ **/
STATIC
UINTN UINTN
VmReadMemN ( VmReadMemN (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,

View File

@ -3,7 +3,7 @@
be of use to a disassembler for the most part. Also provides function be of use to a disassembler for the most part. Also provides function
prototypes for VM functions. prototypes for VM functions.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at

View File

@ -3,7 +3,7 @@
Provides auxiliary support routines for the VM. That is, routines Provides auxiliary support routines for the VM. That is, routines
that are not particularly related to VM execution of EBC instructions. that are not particularly related to VM execution of EBC instructions.
Copyright (c) 2006 - 2008, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -48,7 +48,6 @@ typedef struct _EBC_IMAGE_LIST {
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcUnloadImage ( EbcUnloadImage (
@ -75,7 +74,6 @@ EbcUnloadImage (
@retval EFI_OUT_OF_RESOURCES Memory could not be allocated for the thunk. @retval EFI_OUT_OF_RESOURCES Memory could not be allocated for the thunk.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcCreateThunk ( EbcCreateThunk (
@ -96,7 +94,6 @@ EbcCreateThunk (
@retval EFI_INVALID_PARAMETER Version pointer is NULL. @retval EFI_INVALID_PARAMETER Version pointer is NULL.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcGetVersion ( EbcGetVersion (
@ -114,7 +111,6 @@ EbcGetVersion (
@retval Others Some error occurs when creating periodic event. @retval Others Some error occurs when creating periodic event.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
InitializeEbcCallback ( InitializeEbcCallback (
@ -130,7 +126,6 @@ InitializeEbcCallback (
@param SystemContext EBC system context. @param SystemContext EBC system context.
**/ **/
STATIC
VOID VOID
EFIAPI EFIAPI
CommonEbcExceptionHandler ( CommonEbcExceptionHandler (
@ -146,7 +141,6 @@ CommonEbcExceptionHandler (
@param Context It should be the address of VM_CONTEXT pointer. @param Context It should be the address of VM_CONTEXT pointer.
**/ **/
STATIC
VOID VOID
EFIAPI EFIAPI
EbcPeriodicNotifyFunction ( EbcPeriodicNotifyFunction (
@ -164,7 +158,6 @@ EbcPeriodicNotifyFunction (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugPeriodic ( EbcDebugPeriodic (
@ -184,7 +177,6 @@ EbcDebugPeriodic (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
InitEbcVmTestProtocol ( InitEbcVmTestProtocol (
IN EFI_HANDLE *IHandle IN EFI_HANDLE *IHandle
@ -196,7 +188,6 @@ InitEbcVmTestProtocol (
@return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status. @return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EbcVmTestUnsupported ( EbcVmTestUnsupported (
VOID VOID
@ -212,7 +203,6 @@ EbcVmTestUnsupported (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcRegisterICacheFlush ( EbcRegisterICacheFlush (
@ -231,7 +221,6 @@ EbcRegisterICacheFlush (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugGetMaximumProcessorIndex ( EbcDebugGetMaximumProcessorIndex (
@ -260,7 +249,6 @@ EbcDebugGetMaximumProcessorIndex (
callback function was previously registered. callback function was previously registered.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugRegisterPeriodicCallback ( EbcDebugRegisterPeriodicCallback (
@ -294,7 +282,6 @@ EbcDebugRegisterPeriodicCallback (
callback function was previously registered. callback function was previously registered.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugRegisterExceptionCallback ( EbcDebugRegisterExceptionCallback (
@ -320,7 +307,6 @@ EbcDebugRegisterExceptionCallback (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugInvalidateInstructionCache ( EbcDebugInvalidateInstructionCache (
@ -571,7 +557,6 @@ ErrorExit:
@retval EFI_OUT_OF_RESOURCES Memory could not be allocated for the thunk. @retval EFI_OUT_OF_RESOURCES Memory could not be allocated for the thunk.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcCreateThunk ( EbcCreateThunk (
@ -604,7 +589,6 @@ EbcCreateThunk (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugGetMaximumProcessorIndex ( EbcDebugGetMaximumProcessorIndex (
@ -638,7 +622,6 @@ EbcDebugGetMaximumProcessorIndex (
callback function was previously registered. callback function was previously registered.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugRegisterPeriodicCallback ( EbcDebugRegisterPeriodicCallback (
@ -684,7 +667,6 @@ EbcDebugRegisterPeriodicCallback (
callback function was previously registered. callback function was previously registered.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugRegisterExceptionCallback ( EbcDebugRegisterExceptionCallback (
@ -724,7 +706,6 @@ EbcDebugRegisterExceptionCallback (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugInvalidateInstructionCache ( EbcDebugInvalidateInstructionCache (
@ -827,7 +808,6 @@ EbcDebugSignalException (
@retval Others Some error occurs when creating periodic event. @retval Others Some error occurs when creating periodic event.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
InitializeEbcCallback ( InitializeEbcCallback (
@ -885,7 +865,6 @@ InitializeEbcCallback (
@param SystemContext EBC system context. @param SystemContext EBC system context.
**/ **/
STATIC
VOID VOID
EFIAPI EFIAPI
CommonEbcExceptionHandler ( CommonEbcExceptionHandler (
@ -910,7 +889,6 @@ CommonEbcExceptionHandler (
@param Context It should be the address of VM_CONTEXT pointer. @param Context It should be the address of VM_CONTEXT pointer.
**/ **/
STATIC
VOID VOID
EFIAPI EFIAPI
EbcPeriodicNotifyFunction ( EbcPeriodicNotifyFunction (
@ -940,7 +918,6 @@ EbcPeriodicNotifyFunction (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcDebugPeriodic ( EbcDebugPeriodic (
@ -1006,7 +983,6 @@ EbcDebugPeriodic (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcUnloadImage ( EbcUnloadImage (
@ -1152,7 +1128,6 @@ EbcAddImageThunk (
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcRegisterICacheFlush ( EbcRegisterICacheFlush (
@ -1175,7 +1150,6 @@ EbcRegisterICacheFlush (
@retval EFI_INVALID_PARAMETER Version pointer is NULL. @retval EFI_INVALID_PARAMETER Version pointer is NULL.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EFIAPI EFIAPI
EbcGetVersion ( EbcGetVersion (
@ -1325,7 +1299,6 @@ FreeEBCStack(
@retval EFI_SUCCESS The function completed successfully. @retval EFI_SUCCESS The function completed successfully.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
InitEbcVmTestProtocol ( InitEbcVmTestProtocol (
IN EFI_HANDLE *IHandle IN EFI_HANDLE *IHandle
@ -1367,7 +1340,6 @@ InitEbcVmTestProtocol (
@return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status. @return EFI_UNSUPPORTED This function always return EFI_UNSUPPORTED status.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
EbcVmTestUnsupported ( EbcVmTestUnsupported (
VOID VOID

View File

@ -2,7 +2,7 @@
Main routines for the EBC interpreter. Includes the initialization and Main routines for the EBC interpreter. Includes the initialization and
main interpreter routines. main interpreter routines.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at

View File

@ -1,7 +1,8 @@
##/**@file #/** @file
#
# Low level IA32 specific EBC support routines. # Low level IA32 specific EBC support routines.
# #
# Copyright (c) 2007 - 2008, Intel Corporation # Copyright (c) 2007 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # 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 # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,4 +1,5 @@
;/** @file ;/** @file
;
; This code provides low level routines that support the Virtual Machine ; This code provides low level routines that support the Virtual Machine
; for option ROMs. ; for option ROMs.
; ;

View File

@ -2,7 +2,7 @@
This module contains EBC support routines that are customized based on This module contains EBC support routines that are customized based on
the target processor. the target processor.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -159,7 +159,6 @@ Action:
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
EbcInterpret ( EbcInterpret (
IN OUT UINTN Arg1, IN OUT UINTN Arg1,
@ -308,7 +307,6 @@ EbcInterpret (
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
ExecuteEbcImageEntryPoint ( ExecuteEbcImageEntryPoint (
IN EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,

View File

@ -1,19 +1,18 @@
/// @file ///** @file
/// Contains low level routines for the Virtual Machine implementation //
/// on an Itanium-based platform. // Contains low level routines for the Virtual Machine implementation
/// // on an Itanium-based platform.
/// Copyright (c) 2006, Intel Corporation //
/// All rights reserved. This program and the accompanying materials // Copyright (c) 2006 - 2008, Intel Corporation. <BR>
/// are licensed and made available under the terms and conditions of the BSD License // All rights reserved. This program and the accompanying materials
/// which accompanies this distribution. The full text of the license may be found at // are licensed and made available under the terms and conditions of the BSD License
/// http://opensource.org/licenses/bsd-license.php // 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. // 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: EbcLowLevel.s //
/// //**/
///
.file "EbcLowLevel.s" .file "EbcLowLevel.s"

View File

@ -2,7 +2,7 @@
This module contains EBC support routines that are customized based on This module contains EBC support routines that are customized based on
the target processor. the target processor.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -34,7 +34,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@retval EFI_SUCCESS All data is written. @retval EFI_SUCCESS All data is written.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
WriteBundle ( WriteBundle (
IN VOID *MemPtr, IN VOID *MemPtr,
@ -51,7 +50,6 @@ WriteBundle (
@param Arg The value to be pushed. @param Arg The value to be pushed.
**/ **/
STATIC
VOID VOID
PushU64 ( PushU64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -81,7 +79,6 @@ PushU64 (
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
EbcInterpret ( EbcInterpret (
UINT64 Arg1, UINT64 Arg1,
@ -239,7 +236,6 @@ EbcInterpret (
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
ExecuteEbcImageEntryPoint ( ExecuteEbcImageEntryPoint (
IN EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,
@ -722,7 +718,6 @@ EbcCreateThunks (
@retval EFI_SUCCESS All data is written. @retval EFI_SUCCESS All data is written.
**/ **/
STATIC
EFI_STATUS EFI_STATUS
WriteBundle ( WriteBundle (
IN VOID *MemPtr, IN VOID *MemPtr,

View File

@ -1,7 +1,7 @@
/** @file /** @file
Definition of EBC Support function. Definition of EBC Support function.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at

View File

@ -1,8 +1,9 @@
##/**@file #/** @file
#
# This code provides low level routines that support the Virtual Machine # This code provides low level routines that support the Virtual Machine
# for option ROMs. # for option ROMs.
# #
# Copyright (c) 2007 - 2008, Intel Corporation # Copyright (c) 2007 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials # All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License # 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 # which accompanies this distribution. The full text of the license may be found at

View File

@ -1,4 +1,5 @@
;/** @file ;/** @file
;
; This code provides low level routines that support the Virtual Machine. ; This code provides low level routines that support the Virtual Machine.
; for option ROMs. ; for option ROMs.
; ;
@ -13,7 +14,6 @@
; ;
;**/ ;**/
page ,132 page ,132
title VM ASSEMBLY LANGUAGE ROUTINES title VM ASSEMBLY LANGUAGE ROUTINES

View File

@ -2,7 +2,7 @@
This module contains EBC support routines that are customized based on This module contains EBC support routines that are customized based on
the target x64 processor. the target x64 processor.
Copyright (c) 2006, Intel Corporation Copyright (c) 2006 - 2008, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License 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 which accompanies this distribution. The full text of the license may be found at
@ -35,7 +35,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@param Arg The value to be pushed. @param Arg The value to be pushed.
**/ **/
STATIC
VOID VOID
PushU64 ( PushU64 (
IN VM_CONTEXT *VmPtr, IN VM_CONTEXT *VmPtr,
@ -81,7 +80,6 @@ PushU64 (
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
EbcInterpret ( EbcInterpret (
IN OUT UINTN Arg1, IN OUT UINTN Arg1,
@ -234,7 +232,6 @@ EbcInterpret (
@return The value returned by the EBC application we're going to run. @return The value returned by the EBC application we're going to run.
**/ **/
STATIC
UINT64 UINT64
ExecuteEbcImageEntryPoint ( ExecuteEbcImageEntryPoint (
IN EFI_HANDLE ImageHandle, IN EFI_HANDLE ImageHandle,