MdeModulePkg/Include/Protocol/EbcVmTest.h File Reference


Data Structures

struct  VM_CONTEXT
struct  _EFI_EBC_VM_TEST_PROTOCOL

Defines

#define EFI_EBC_VM_TEST_PROTOCOL_GUID

Typedefs

typedef struct
_EFI_EBC_VM_TEST_PROTOCOL 
EFI_EBC_VM_TEST_PROTOCOL
typedef UINT8 * VMIP
typedef INT64 VM_REGISTER
typedef UINT32 EXCEPTION_FLAGS
typedef IN VM_CONTEXTVmPtr
typedef IN VM_CONTEXT IN OUT
UINTN * 
InstructionCount
typedef IN CHAR16 * AsmText
typedef IN CHAR16 IN OUT INT8 * Buffer
typedef IN CHAR16 IN OUT INT8
IN OUT UINTN * 
BufferLen
typedef IN OUT CHAR16 IN OUT
INT8 IN OUT UINTN * 
Len

Functions

typedef EFI_STATUS (EFIAPI *EBC_VM_TEST_EXECUTE)(IN EFI_EBC_VM_TEST_PROTOCOL *This

Variables

EFI_GUID gEfiEbcVmTestProtocolGuid

Detailed Description

EBC VM Test protocol for test purposes.

Copyright (c) 2011, Intel Corporation. All rights reserved.

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.


Define Documentation

#define EFI_EBC_VM_TEST_PROTOCOL_GUID

Value:

{ \
    0xAAEACCFD, 0xF27B, 0x4C17, { 0xB6, 0x10, 0x75, 0xCA, 0x1F, 0x2D, 0xFB, 0x52 } \
  }


Typedef Documentation

typedef IN OUT CHAR16 * AsmText

typedef IN OUT CHAR16 IN OUT INT8 * Buffer

typedef IN CHAR16 IN OUT INT8 IN OUT UINTN* BufferLen

typedef UINT32 EXCEPTION_FLAGS

typedef IN VM_CONTEXT IN OUT UINTN* InstructionCount

typedef IN OUT CHAR16 IN OUT INT8 IN OUT UINTN* Len

typedef INT64 VM_REGISTER

typedef UINT8* VMIP

instruction pointer for the VM

typedef IN VM_CONTEXT* VmPtr


Function Documentation

typedef EFI_STATUS ( EFIAPI *  EBC_VM_TEST_DASM  ) 

Given a pointer to a new VM context, execute one or more instructions. This function is only used for test purposes.

Parameters:
[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
[in] VmPtr A pointer to a VM context.
[in,out] InstructionCount A pointer to a UINTN value holding the number of instructions to execute. If it holds value of 0, then the instruction to be executed is 1.
Return values:
EFI_UNSUPPORTED At least one of the opcodes is not supported.
EFI_SUCCESS All of the instructions are executed successfully.
Convert AsmText to the instruction. This function is only used for test purposes.

Parameters:
[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
[in] AsmText A pointer to EBC ASM text code.
[out] Buffer Buffer to store the instruction.
[out] BufferLen Size of buffer that is requried to store data.
Return values:
EFI_UNSUPPORTED This functionality is unsupported.
EFI_SUCCESS Successfully convert AsmText to the instruction.
Dump the executed instruction. This function is only used for test purposes.

Parameters:
[in] This A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.
[out] AsmText Contain the disasm text.
[out] Buffer Buffer to store the instruction.
[out] BufferLen Size of buffer that is requried to store data.
Return values:
EFI_UNSUPPORTED This functionality is unsupported.
EFI_SUCCESS Successfully dump the executed instruction.


Variable Documentation


Generated on Thu Sep 24 23:30:15 2015 for MdeModulePkg[ALL] by  doxygen 1.5.7.1