]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/ReadIdt.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / ReadIdt.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 # ReadIdtBase.Asm
15 #
16 # Abstract:
17 #
18 # ReadIdtBase function
19 #
20 # Notes:
21 #
22 #include "EfiBind.h"
23 #------------------------------------------------------------------------------
24
25 .586:
26 #.MODEL flat,C
27 .code:
28
29 .globl ASM_PFX(ReadIdtBasea)
30 .globl ASM_PFX(ReadIdtLimita)
31
32 #------------------------------------------------------------------------------
33 # UINTN
34 # ReadIdtBase (
35 # void
36 # )
37 #
38 # Abstract: Returns physical address of IDTR
39 #
40 ASM_PFX(ReadIdtBasea):
41 push %ebp
42 mov %esp,%ebp
43 add $0xfffffff8,%esp
44 sidtl 0xfffffffa(%ebp)
45 mov 0xfffffffc(%ebp),%eax
46 leave
47 ret
48
49
50
51 #------------------------------------------------------------------------------
52 # UINT16
53 # ReadIdtLimit (
54 # void
55 # )
56 #
57 # Abstract: Returns Limit of IDTR
58 #
59 ASM_PFX(ReadIdtLimita):
60 push %ebp
61 mov %esp,%ebp
62 add $0xfffffff8,%esp
63 sidtl 0xfffffffa(%ebp)
64 mov 0xfffffffa(%ebp),%ax
65 leave
66 ret
67
68
69