]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/DisablePaging32.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ia32 / DisablePaging32.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
8 #
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #
12 # Module Name:
13 #
14 # DisablePaging32.Asm
15 #
16 # Abstract:
17 #
18 # InternalX86DisablePaging32 function
19 #
20 # Notes:
21 #
22 #------------------------------------------------------------------------------
23
24 #include <EdkIIGlueBase.h>
25
26 .globl ASM_PFX(InternalX86DisablePaging32)
27
28 #------------------------------------------------------------------------------
29 # VOID
30 # EFIAPI
31 # InternalX86DisablePaging32 (
32 # IN SWITCH_STACK_ENTRY_POINT EntryPoint,
33 # IN VOID *Context1, OPTIONAL
34 # IN VOID *Context2, OPTIONAL
35 # IN VOID *NewStack
36 # );
37 #------------------------------------------------------------------------------
38 ASM_PFX(InternalX86DisablePaging32):
39 movl 4(%esp), %ebx
40 movl 8(%esp), %ecx
41 movl 12(%esp), %edx
42 pushfl
43 pop %edi
44 cli
45 movl %cr0, %eax
46 btrl $31, %eax
47 movl 16(%esp), %esp
48 movl %eax, %cr0
49 push %edi
50 popfl
51 push %edx
52 push %ecx
53 call *%ebx
54 jmp .