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

Go to the source code of this file.

Macros

#define EDB_DISASM_DEFINE(func)
 

Functions

 EDB_DISASM_DEFINE (EdbDisasmBREAK)
 
 EDB_DISASM_DEFINE (EdbDisasmJMP)
 
 EDB_DISASM_DEFINE (EdbDisasmJMP8)
 
 EDB_DISASM_DEFINE (EdbDisasmCALL)
 
 EDB_DISASM_DEFINE (EdbDisasmRET)
 
 EDB_DISASM_DEFINE (EdbDisasmCMP)
 
 EDB_DISASM_DEFINE (EdbDisasmUnsignedDataManip)
 
 EDB_DISASM_DEFINE (EdbDisasmSignedDataManip)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVxx)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVsnw)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVsnd)
 
 EDB_DISASM_DEFINE (EdbDisasmLOADSP)
 
 EDB_DISASM_DEFINE (EdbDisasmSTORESP)
 
 EDB_DISASM_DEFINE (EdbDisasmPUSH)
 
 EDB_DISASM_DEFINE (EdbDisasmPOP)
 
 EDB_DISASM_DEFINE (EdbDisasmCMPI)
 
 EDB_DISASM_DEFINE (EdbDisasmPUSHn)
 
 EDB_DISASM_DEFINE (EdbDisasmPOPn)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVI)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVIn)
 
 EDB_DISASM_DEFINE (EdbDisasmMOVREL)
 
UINTN EdbDisasmBREAK (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmJMP (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmJMP8 (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmCALL (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmRET (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmCMP (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmUnsignedDataManip (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmSignedDataManip (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVxx (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVsnw (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVsnd (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmLOADSP (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmSTORESP (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmPUSH (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmPOP (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmCMPI (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmPUSHn (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmPOPn (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVI (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVIn (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 
UINTN EdbDisasmMOVREL (IN EFI_PHYSICAL_ADDRESS InstructionAddress, IN EFI_SYSTEM_CONTEXT SystemContext, OUT CHAR16 **DisasmString)
 

Variables

EDB_DISASM_INSTRUCTION mEdbDisasmInstructionTable []
 
CONST UINT8 mJMPLen []
 

Detailed Description

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

Definition in file EdbDisasm.c.

Macro Definition Documentation

◆ EDB_DISASM_DEFINE

#define EDB_DISASM_DEFINE (   func)
Value:
UINTN \
func ( \
IN EFI_PHYSICAL_ADDRESS InstructionAddress, \
IN EFI_SYSTEM_CONTEXT SystemContext, \
OUT CHAR16 **DisasmString \
)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50

Definition at line 14 of file EdbDisasm.c.

Function Documentation

◆ EdbDisasmBREAK()

UINTN EdbDisasmBREAK ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - BREAK.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 120 of file EdbDisasm.c.

◆ EdbDisasmCALL()

UINTN EdbDisasmCALL ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - CALL.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 286 of file EdbDisasm.c.

◆ EdbDisasmCMP()

UINTN EdbDisasmCMP ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - CMP.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 430 of file EdbDisasm.c.

◆ EdbDisasmCMPI()

UINTN EdbDisasmCMPI ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - CMPI.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1250 of file EdbDisasm.c.

◆ EdbDisasmJMP()

UINTN EdbDisasmJMP ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - JMP.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 161 of file EdbDisasm.c.

◆ EdbDisasmJMP8()

UINTN EdbDisasmJMP8 ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - JMP8.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 240 of file EdbDisasm.c.

◆ EdbDisasmLOADSP()

UINTN EdbDisasmLOADSP ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - LOADSP.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1038 of file EdbDisasm.c.

◆ EdbDisasmMOVI()

UINTN EdbDisasmMOVI ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVI.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1481 of file EdbDisasm.c.

◆ EdbDisasmMOVIn()

UINTN EdbDisasmMOVIn ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVIn.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1591 of file EdbDisasm.c.

◆ EdbDisasmMOVREL()

UINTN EdbDisasmMOVREL ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVREL.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1686 of file EdbDisasm.c.

◆ EdbDisasmMOVsnd()

UINTN EdbDisasmMOVsnd ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVsnd.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 967 of file EdbDisasm.c.

◆ EdbDisasmMOVsnw()

UINTN EdbDisasmMOVsnw ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVsnw.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 896 of file EdbDisasm.c.

◆ EdbDisasmMOVxx()

UINTN EdbDisasmMOVxx ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - MOVxx.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 740 of file EdbDisasm.c.

◆ EdbDisasmPOP()

UINTN EdbDisasmPOP ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - POP.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1186 of file EdbDisasm.c.

◆ EdbDisasmPOPn()

UINTN EdbDisasmPOPn ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - POPn.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1422 of file EdbDisasm.c.

◆ EdbDisasmPUSH()

UINTN EdbDisasmPUSH ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - PUSH.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1122 of file EdbDisasm.c.

◆ EdbDisasmPUSHn()

UINTN EdbDisasmPUSHn ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - PUSHn.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1363 of file EdbDisasm.c.

◆ EdbDisasmRET()

UINTN EdbDisasmRET ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - RET.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 392 of file EdbDisasm.c.

◆ EdbDisasmSignedDataManip()

UINTN EdbDisasmSignedDataManip ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - Signed Data Manipulate,

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 641 of file EdbDisasm.c.

◆ EdbDisasmSTORESP()

UINTN EdbDisasmSTORESP ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - STORESP.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 1080 of file EdbDisasm.c.

◆ EdbDisasmUnsignedDataManip()

UINTN EdbDisasmUnsignedDataManip ( IN EFI_PHYSICAL_ADDRESS  InstructionAddress,
IN EFI_SYSTEM_CONTEXT  SystemContext,
OUT CHAR16 **  DisasmString 
)

Disasm instruction - Unsigned Data Manipulate.

Parameters
InstructionAddress- The instruction address
SystemContext- EBC system context.
DisasmString- The instruction string
Returns
Instruction length

Definition at line 522 of file EdbDisasm.c.

Variable Documentation

◆ mEdbDisasmInstructionTable

EDB_DISASM_INSTRUCTION mEdbDisasmInstructionTable[]

Definition at line 47 of file EdbDisasm.c.

◆ mJMPLen

CONST UINT8 mJMPLen[]
extern

Definition at line 1342 of file EbcExecute.c.