TianoCore EDK2 master
Loading...
Searching...
No Matches
EbcDebuggerHook.c File Reference
#include "EbcDebuggerHook.h"

Go to the source code of this file.

Functions

VOID EbcDebuggerHookInit (IN EFI_HANDLE Handle, IN EFI_DEBUG_SUPPORT_PROTOCOL *EbcDebugProtocol)
 
VOID EbcDebuggerHookUnload (VOID)
 
VOID EbcDebuggerHookEbcUnloadImage (IN EFI_HANDLE Handle)
 
VOID EbcDebuggerHookExecuteEbcImageEntryPoint (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookEbcInterpret (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookExecuteStart (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookExecuteEnd (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookCALLStart (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookCALLEnd (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookCALLEXStart (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookCALLEXEnd (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookRETStart (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookRETEnd (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookJMPStart (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookJMPEnd (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookJMP8Start (IN VM_CONTEXT *VmPtr)
 
VOID EbcDebuggerHookJMP8End (IN VM_CONTEXT *VmPtr)
 

Detailed Description

Contains the empty version of the EBC Debugger hooks, to be used when compiling the regular EBC VM module. As debugging is not needed for the standard EBC VM, all calls are left empty.

The EBC Debugger defines its own version for these calls in EbdHooks.c.

Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EbcDebuggerHook.c.

Function Documentation

◆ EbcDebuggerHookCALLEnd()

VOID EbcDebuggerHookCALLEnd ( IN VM_CONTEXT VmPtr)

The hook in ExecuteCALL, after move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 142 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookCALLEXEnd()

VOID EbcDebuggerHookCALLEXEnd ( IN VM_CONTEXT VmPtr)

The hook in ExecuteCALL, after call EbcLLCALLEX.

Parameters
VmPtr- pointer to VM context.

Definition at line 172 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookCALLEXStart()

VOID EbcDebuggerHookCALLEXStart ( IN VM_CONTEXT VmPtr)

The hook in ExecuteCALL, before call EbcLLCALLEX.

Parameters
VmPtr- pointer to VM context.

Definition at line 157 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookCALLStart()

VOID EbcDebuggerHookCALLStart ( IN VM_CONTEXT VmPtr)

The hook in ExecuteCALL, before move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 127 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookEbcInterpret()

VOID EbcDebuggerHookEbcInterpret ( IN VM_CONTEXT VmPtr)

The hook in ExecuteEbcImageEntryPoint.

Parameters
VmPtr- pointer to VM context.

Definition at line 84 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookEbcUnloadImage()

VOID EbcDebuggerHookEbcUnloadImage ( IN EFI_HANDLE  Handle)

The hook in EbcUnloadImage. Currently do nothing here.

Parameters
HandleThe EbcImage handle.

Definition at line 54 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookExecuteEbcImageEntryPoint()

VOID EbcDebuggerHookExecuteEbcImageEntryPoint ( IN VM_CONTEXT VmPtr)

The hook in ExecuteEbcImageEntryPoint.

Parameters
VmPtr- pointer to VM context.

Definition at line 69 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookExecuteEnd()

VOID EbcDebuggerHookExecuteEnd ( IN VM_CONTEXT VmPtr)

The hook in EbcExecute, after ExecuteFunction.

Parameters
VmPtr- pointer to VM context.

Definition at line 112 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookExecuteStart()

VOID EbcDebuggerHookExecuteStart ( IN VM_CONTEXT VmPtr)

The hook in EbcExecute, before ExecuteFunction.

Parameters
VmPtr- pointer to VM context.

Definition at line 98 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookInit()

VOID EbcDebuggerHookInit ( IN EFI_HANDLE  Handle,
IN EFI_DEBUG_SUPPORT_PROTOCOL EbcDebugProtocol 
)

The hook in InitializeEbcDriver.

Parameters
Handle- The EbcDebugProtocol handle.
EbcDebugProtocol- The EbcDebugProtocol interface.

Definition at line 24 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookJMP8End()

VOID EbcDebuggerHookJMP8End ( IN VM_CONTEXT VmPtr)

The hook in ExecuteJMP8, after move IP..

Parameters
VmPtr- pointer to VM context.

Definition at line 262 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookJMP8Start()

VOID EbcDebuggerHookJMP8Start ( IN VM_CONTEXT VmPtr)

The hook in ExecuteJMP8, before move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 247 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookJMPEnd()

VOID EbcDebuggerHookJMPEnd ( IN VM_CONTEXT VmPtr)

The hook in ExecuteJMP, after move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 232 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookJMPStart()

VOID EbcDebuggerHookJMPStart ( IN VM_CONTEXT VmPtr)

The hook in ExecuteJMP, before move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 217 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookRETEnd()

VOID EbcDebuggerHookRETEnd ( IN VM_CONTEXT VmPtr)

The hook in ExecuteRET, after move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 202 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookRETStart()

VOID EbcDebuggerHookRETStart ( IN VM_CONTEXT VmPtr)

The hook in ExecuteRET, before move IP.

Parameters
VmPtr- pointer to VM context.

Definition at line 187 of file EbcDebuggerHook.c.

◆ EbcDebuggerHookUnload()

VOID EbcDebuggerHookUnload ( VOID  )

The hook in UnloadImage for EBC Interpreter.

Definition at line 38 of file EbcDebuggerHook.c.