Code scrub DxeIpl, Runtime, DevicePath, FvbServicesLib, DiskIo, Partition, English, EBC.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7105 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8
2008-12-23 16:20:43 +00:00
parent a387653db2
commit 48557c6550
38 changed files with 315 additions and 377 deletions

View File

@@ -1,8 +1,10 @@
#/** @file
# Module that produces EBC Interprete and EBC Debug Support protocols.
#
# This module for the EBC virtual machine implementation produces
# EBC and EBC debug support protocols.
#
# This module implements EFI Byte Code (EBC) Virtual Machine that can provide
# platformand processor-independent mechanisms for loading and executing EFI
# device drivers.
#
# Copyright (c) 2006 - 2008, Intel Corporation. <BR>
# All rights reserved. This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License

View File

@@ -108,7 +108,7 @@ VmReadIndex64 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 8-bit value from the memory adress.
@return The 8-bit value from the memory address.
**/
UINT8
@@ -123,7 +123,7 @@ VmReadMem8 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 16-bit value from the memory adress.
@return The 16-bit value from the memory address.
**/
UINT16
@@ -138,7 +138,7 @@ VmReadMem16 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 32-bit value from the memory adress.
@return The 32-bit value from the memory address.
**/
UINT32
@@ -153,7 +153,7 @@ VmReadMem32 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 64-bit value from the memory adress.
@return The 64-bit value from the memory address.
**/
UINT64
@@ -193,7 +193,7 @@ VmReadMemN (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -223,7 +223,7 @@ VmWriteMem8 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -253,7 +253,7 @@ VmWriteMem16 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -268,7 +268,7 @@ VmWriteMem32 (
);
/**
Reads 16-bit unsinged data from the code stream.
Reads 16-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -286,7 +286,7 @@ VmReadCode16 (
);
/**
Reads 32-bit unsinged data from the code stream.
Reads 32-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -304,7 +304,7 @@ VmReadCode32 (
);
/**
Reads 64-bit unsinged data from the code stream.
Reads 64-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -4599,7 +4599,7 @@ VmReadIndex64 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -4637,7 +4637,7 @@ VmWriteMem8 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -4700,7 +4700,7 @@ VmWriteMem16 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -4763,7 +4763,7 @@ VmWriteMem32 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -4828,7 +4828,7 @@ VmWriteMem64 (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -5019,7 +5019,7 @@ VmReadImmed64 (
/**
Reads 16-bit unsinged data from the code stream.
Reads 16-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -5059,7 +5059,7 @@ VmReadCode16 (
/**
Reads 32-bit unsinged data from the code stream.
Reads 32-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -5093,7 +5093,7 @@ VmReadCode32 (
/**
Reads 64-bit unsinged data from the code stream.
Reads 64-bit unsigned data from the code stream.
This routine provides the ability to read raw unsigned data from the code
stream.
@@ -5139,7 +5139,7 @@ VmReadCode64 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 8-bit value from the memory adress.
@return The 8-bit value from the memory address.
**/
UINT8
@@ -5164,7 +5164,7 @@ VmReadMem8 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 16-bit value from the memory adress.
@return The 16-bit value from the memory address.
**/
UINT16
@@ -5195,7 +5195,7 @@ VmReadMem16 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 32-bit value from the memory adress.
@return The 32-bit value from the memory address.
**/
UINT32
@@ -5230,7 +5230,7 @@ VmReadMem32 (
@param VmPtr A pointer to VM context.
@param Addr The memory address.
@return The 64-bit value from the memory adress.
@return The 64-bit value from the memory address.
**/
UINT64

View File

@@ -270,7 +270,7 @@ GetVmVersion (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.
@@ -300,7 +300,7 @@ VmWriteMemN (
VM stack) to point into the EBC entry point arguments.
@param VmPtr A pointer to a VM context.
@param Addr Adddress to write to.
@param Addr Address to write to.
@param Data Value to write to Addr.
@retval EFI_SUCCESS The instruction is executed successfully.

View File

@@ -36,7 +36,7 @@ typedef UINT32 EXCEPTION_FLAGS;
typedef struct {
VM_REGISTER R[8]; // General purpose registers.
UINT64 Flags; // Flags register:
// 0 Set to 1 if the result of the last compare was true
// 0 Set to 1 if the result of the last compare was true
// 1 Set to 1 if stepping
// 2..63 Reserved.
VMIP Ip; // Instruction pointer.
@@ -106,7 +106,7 @@ EbcCreateThunks (
/**
Add a thunk to our list of thunks for a given image handle.
Also flush the instruction cache since we've written thunk code
Also flush the instruction cache since we have written thunk code
to memory that will be executed eventually.
@param ImageHandle The image handle to which the thunk is tied.
@@ -249,7 +249,7 @@ EbcLLGetReturnValue (
);
/**
Returns the stack index and buffer assosicated with the Handle parameter.
Returns the stack index and buffer associated with the Handle parameter.
@param Handle The EFI handle as the index to the EBC stack.
@param StackBuffer A pointer to hold the returned stack buffer.