1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
12 ; AsmDisablePaging32 function
16 ;------------------------------------------------------------------------------
20 ;------------------------------------------------------------------------------
23 ; InternalX86DisablePaging32 (
24 ; IN SWITCH_STACK_ENTRY_POINT EntryPoint,
25 ; IN VOID *Context1, OPTIONAL
26 ; IN VOID *Context2, OPTIONAL
29 ;------------------------------------------------------------------------------
30 global ASM_PFX(InternalX86DisablePaging32)
31 ASM_PFX(InternalX86DisablePaging32):
36 pop edi ; save EFLAGS to edi
43 popfd ; restore EFLAGS from edi
47 jmp $ ; EntryPoint() should not return