]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/EbcDxe/Ia32/EbcLowLevel.S
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Universal / EbcDxe / Ia32 / EbcLowLevel.S
CommitLineData
7b414b4e 1##/**@file\r
2# Low level IA32 specific EBC support routines.\r
3#\r
4# Copyright (c) 2007 - 2008, Intel Corporation\r
5# All rights reserved. This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13#**/\r
14\r
53c71d09 15.globl ASM_PFX(CopyMem)\r
16\r
17.globl ASM_PFX(EbcLLCALLEXNative)\r
18ASM_PFX(EbcLLCALLEXNative):\r
19 push %ebp\r
20 push %ebx\r
21 mov %esp,%ebp\r
22 mov 0xc(%esp),%ecx\r
23 mov 0x14(%esp),%eax\r
24 mov 0x10(%esp),%edx\r
25 sub %edx,%eax\r
26 sub %eax,%esp\r
27 mov %esp,%ebx\r
28 push %ecx\r
29 push %eax\r
30 push %edx\r
31 push %ebx\r
32 call ASM_PFX(CopyMem)\r
33 pop %eax\r
34 pop %eax\r
35 pop %eax\r
36 pop %ecx\r
37 call *%ecx\r
38 mov %ebp,%esp\r
39 mov %ebp,%esp\r
40 pop %ebx\r
41 pop %ebp\r
7b414b4e 42 ret\r
53c71d09 43\r
44.globl ASM_PFX(EbcLLGetEbcEntryPoint)\r
45ASM_PFX(EbcLLGetEbcEntryPoint):\r
7b414b4e 46 ret\r
53c71d09 47\r
48.globl ASM_PFX(EbcLLGetStackPointer)\r
49ASM_PFX(EbcLLGetStackPointer):\r
50 mov %esp,%eax\r
51 add $0x4,%eax\r
7b414b4e 52 ret\r
53c71d09 53\r
54.globl ASM_PFX(EbcLLGetReturnValue)\r
55ASM_PFX(EbcLLGetReturnValue):\r
7b414b4e 56 ret\r