|
RDFU
1.0
|
Functions for obtaining the CPU context state (x86 and x64) More...
#include "EfiScannerHeaders.h"
Go to the source code of this file.
Macros | |
| #define | LOG_VALUE(name, val) LogFullAscii(name, val); |
| #define | LOG_VALUE(name, val) LogFullAscii(name, val); |
Functions | |
| EFI_STATUS | GetX64Context (x64_context *Context) |
| EFI_STATUS | GetX86Context (x86_context *Context) |
| EFI_STATUS | DisplayLogX64Context (x64_context *Context) |
| EFI_STATUS | DisplayLogX86Context (x86_context *Context) |
| VOID | ContextX64Test (VOID) |
Functions for obtaining the CPU context state (x86 and x64)
Definition in file Context.c.
| #define LOG_VALUE | ( | name, | |
| val | |||
| ) | LogFullAscii(name, val); |
Referenced by DisplayLogX64Context(), and DisplayLogX86Context().
| #define LOG_VALUE | ( | name, | |
| val | |||
| ) | LogFullAscii(name, val); |
| VOID ContextX64Test | ( | VOID | ) |
Definition at line 227 of file Context.c.
References DisplayLogX64Context(), DisplayLogX86Context(), GetX64Context(), and GetX86Context().
Referenced by ProcessCommand(), and TestDumpHandles().


| EFI_STATUS DisplayLogX64Context | ( | x64_context * | Context | ) |
Function displays the X64 context structure.
| Context | Pointer to x64_context structure |
| EFI_SUCCESS |
Definition at line 123 of file Context.c.
References _x64_context::_Cr0, _x64_context::_Cr2, _x64_context::_Cr3, _x64_context::_Cr4, _x64_context::_Cr8, _x64_context::_Cs, _x64_context::_Dr0, _x64_context::_Dr2, _x64_context::_Dr3, _x64_context::_Dr6, _x64_context::_Dr7, _x64_context::_Ds, _x64_context::_Es, _x64_context::_Fs, _x64_context::_Gs, _x64_context::_Rax, _x64_context::_Rbp, _x64_context::_Rbx, _x64_context::_Rcx, _x64_context::_Rdi, _x64_context::_Rdx, _x64_context::_Rflags, _x64_context::_Rsi, _x64_context::_Rsp, _x64_context::_Ss, LOG_VALUE, and LogFullAscii().
Referenced by ContextX64Test(), and DrawBoxAndMenu().


| EFI_STATUS DisplayLogX86Context | ( | x86_context * | Context | ) |
Function displays the X86 context structure.
| Context | Pointer to x86_context structure |
| EFI_SUCCESS |
Definition at line 180 of file Context.c.
References _x86_context::_Cr0, _x86_context::_Cr2, _x86_context::_Cr3, _x86_context::_Cr4, _x86_context::_Cs, _x86_context::_Dr0, _x86_context::_Dr2, _x86_context::_Dr3, _x86_context::_Dr6, _x86_context::_Dr7, _x86_context::_Ds, _x86_context::_Eax, _x86_context::_Ebp, _x86_context::_Ebx, _x86_context::_Ecx, _x86_context::_Edi, _x86_context::_Edx, _x86_context::_Eflags, _x86_context::_Es, _x86_context::_Esi, _x86_context::_Esp, _x86_context::_Fs, _x86_context::_Gs, _x86_context::_Ss, LOG_VALUE, and LogFullAscii().
Referenced by ContextX64Test(), and DrawBoxAndMenu().


| EFI_STATUS GetX64Context | ( | x64_context * | Context | ) |
Function fills the X64 Context structure.
| Context | Pointer to x64_context structure |
| EFI_SUCCESS |
Definition at line 24 of file Context.c.
References _x64_context::_Cr0, _x64_context::_Cr2, _x64_context::_Cr3, _x64_context::_Cr4, _x64_context::_Cr8, _x64_context::_Cs, _x64_context::_Dr0, _x64_context::_Dr2, _x64_context::_Dr3, _x64_context::_Dr6, _x64_context::_Dr7, _x64_context::_Ds, _x64_context::_Es, _x64_context::_Fs, _x64_context::_Gs, _x64_context::_Rax, _x64_context::_Rbp, _x64_context::_Rbx, _x64_context::_Rcx, _x64_context::_Rdi, _x64_context::_Rdx, _x64_context::_Rflags, _x64_context::_Rsi, _x64_context::_Rsp, _x64_context::_Ss, ASMGetRegCr0(), ASMGetRegCr2(), ASMGetRegCr3(), ASMGetRegCr4(), ASMGetRegCr8(), ASMGetRegCs(), ASMGetRegDr0(), ASMGetRegDr2(), ASMGetRegDr3(), ASMGetRegDr6(), ASMGetRegDr7(), ASMGetRegDs(), ASMGetRegEs(), ASMGetRegFs(), ASMGetRegGs(), ASMGetRegRax(), ASMGetRegRbp(), ASMGetRegRbx(), ASMGetRegRcx(), ASMGetRegRdi(), ASMGetRegRdx(), ASMGetRegRflags(), ASMGetRegRsi(), ASMGetRegRsp(), and ASMGetRegSs().
Referenced by ContextX64Test(), and DrawBoxAndMenu().


| EFI_STATUS GetX86Context | ( | x86_context * | Context | ) |
Function fills the X86 Context structure.
| Context | Pointer to x86_context structure |
| EFI_SUCCESS |
Definition at line 73 of file Context.c.
References _x86_context::_Cr0, _x86_context::_Cr2, _x86_context::_Cr3, _x86_context::_Cr4, _x86_context::_Cs, _x86_context::_Dr0, _x86_context::_Dr2, _x86_context::_Dr3, _x86_context::_Dr6, _x86_context::_Dr7, _x86_context::_Ds, _x86_context::_Eax, _x86_context::_Ebp, _x86_context::_Ebx, _x86_context::_Ecx, _x86_context::_Edi, _x86_context::_Edx, _x86_context::_Eflags, _x86_context::_Es, _x86_context::_Esi, _x86_context::_Esp, _x86_context::_Fs, _x86_context::_Gs, _x86_context::_Ss, ASMGetRegCr0(), ASMGetRegCr2(), ASMGetRegCr3(), ASMGetRegCr4(), ASMGetRegCs(), ASMGetRegDr0(), ASMGetRegDr2(), ASMGetRegDr3(), ASMGetRegDr6(), ASMGetRegDr7(), ASMGetRegDs(), ASMGetRegEs(), ASMGetRegFs(), ASMGetRegGs(), ASMGetRegRax(), ASMGetRegRbp(), ASMGetRegRbx(), ASMGetRegRcx(), ASMGetRegRdi(), ASMGetRegRdx(), ASMGetRegRflags(), ASMGetRegRsi(), ASMGetRegRsp(), and ASMGetRegSs().
Referenced by ContextX64Test(), and DrawBoxAndMenu().

