30#elif defined (_MSC_VER)
33#error wtf are you using
95 Context->ContextFlags &= ~BL_CONTEXT_PAGING_ON;
105 Context->ContextFlags &= ~BL_CONTEXT_PAGING_ON;
204 Context->ContextFlags &= ~BL_CONTEXT_INTERRUPTS_ON;
256 __asm__ __volatile__ (
"mov %%cs,%0\n\t" :
"=r" (CodeSegment));
257#elif defined (_MSC_VER)
258 _asm { mov CodeSegment,
cs };
260#error wtf are you using
266 IdtBase[3].
Access = 0x8E00u;
269 IdtBase[0x2C].
Selector = CodeSegment;
270 IdtBase[0x2C].
Access = 0x8E00u;
273 IdtBase[0x2D].
Selector = CodeSegment;
274 IdtBase[0x2D].
Access = 0x8E00u;
283 __asm__ __volatile__ (
"fninit");
284#elif defined (_MSC_VER)
287#error wtf are you using
293 if ((
__readmsr(0x10) >> 32) & 0xFFC00000)
#define BL_APPLICATION_FLAG_CONVERTED_FROM_EFI
ULONG BlpApplicationFlags
BL_LIBRARY_PARAMETERS BlpLibraryParameters
#define BL_CONTEXT_INTERRUPTS_ON
#define BL_CONTEXT_PAGING_ON
enum _BL_ARCH_MODE BL_ARCH_MODE
#define NT_SUCCESS(StatCode)
_In_ FLT_SET_CONTEXT_OPERATION _In_ PFLT_CONTEXT NewContext
_In_ FLT_SET_CONTEXT_OPERATION _In_ PFLT_CONTEXT _Outptr_opt_result_maybenull_ PFLT_CONTEXT * OldContext
VOID BlpArchEnableTranslation(VOID)
NTSTATUS ArchInitializeContexts(VOID)
VOID BlpArchSwitchContext(_In_ BL_ARCH_MODE NewMode)
PBL_ARCH_CONTEXT CurrentExecutionContext
NTSTATUS ArchInitializeContext(_In_ PBL_ARCH_CONTEXT Context)
VOID ArchSwitchContext(_In_ PBL_ARCH_CONTEXT NewContext, _In_ PBL_ARCH_CONTEXT OldContext)
VOID DECLSPEC_NORETURN ArchTrapNoProcess(VOID)
BL_ARCH_CONTEXT ApplicationExecutionContext
BL_ARCH_CONTEXT FirmwareExecutionContext
NTSTATUS BlpArchInitialize(_In_ ULONG Phase)
void __cdecl _disable(void)
void __cdecl _enable(void)
PPC_QUAL void __writemsr(const unsigned long Value)
PPC_QUAL unsigned long long __readmsr()
__INTRIN_INLINE void __lidt(void *Source)
__INTRIN_INLINE unsigned long __readcr4(void)
__INTRIN_INLINE unsigned long __readcr0(void)
__INTRIN_INLINE void __writecr0(unsigned int Data)
__INTRIN_INLINE void __sidt(void *Destination)
__INTRIN_INLINE void __writecr4(unsigned int Data)
#define DECLSPEC_NORETURN
#define STATUS_NOT_SUPPORTED
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tsub $32, %rsp\n" "\t.seh_stackalloc 32\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $32, %rsp\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")