]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/ReadIdt.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / ReadIdt.S
CommitLineData
b341712e 1#------------------------------------------------------------------------------\r
2#\r
4ea9375a
HT
3# Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
4# This program and the accompanying materials\r
b341712e 5# are licensed and made available under the terms and conditions of the BSD License\r
6# which accompanies this distribution. The full text of the license may be found at\r
7# http://opensource.org/licenses/bsd-license.php\r
8#\r
9# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11#\r
12# Module Name:\r
13#\r
14# ReadIdtBase.Asm\r
15#\r
16# Abstract:\r
17#\r
18# ReadIdtBase function\r
19#\r
20# Notes:\r
21#\r
22#include "EfiBind.h"\r
23#------------------------------------------------------------------------------\r
24\r
25 .586: \r
26 #.MODEL flat,C\r
27 .code: \r
28\r
29.globl ASM_PFX(ReadIdtBasea)\r
30.globl ASM_PFX(ReadIdtLimita)\r
31\r
32#------------------------------------------------------------------------------\r
33# UINTN\r
34# ReadIdtBase (\r
35# void\r
36# )\r
37#\r
38# Abstract: Returns physical address of IDTR\r
39#\r
40ASM_PFX(ReadIdtBasea):\r
41 push %ebp\r
42 mov %esp,%ebp\r
43 add $0xfffffff8,%esp\r
44 sidtl 0xfffffffa(%ebp)\r
45 mov 0xfffffffc(%ebp),%eax\r
46 leave \r
47 ret \r
48\r
49\r
50\r
51#------------------------------------------------------------------------------\r
52# UINT16\r
53# ReadIdtLimit (\r
54# void\r
55# )\r
56#\r
57# Abstract: Returns Limit of IDTR\r
58#\r
59ASM_PFX(ReadIdtLimita):\r
60 push %ebp\r
61 mov %esp,%ebp\r
62 add $0xfffffff8,%esp\r
63 sidtl 0xfffffffa(%ebp)\r
64 mov 0xfffffffa(%ebp),%ax\r
65 leave \r
66 ret \r
67\r
68\r
69\r