]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/WriteIdt.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / WriteIdt.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 # WriteIdt.Asm
15 #
16 # Abstract:
17 #
18 # SetIdtBase function
19 #
20 # Notes:
21 #
22 #include "EfiBind.h"
23 #------------------------------------------------------------------------------
24
25 .586:
26 #.MODEL flat,C
27 .code:
28 #------------------------------------------------------------------------------
29
30 .globl ASM_PFX(SetIdtBase)
31
32 # void
33 # SetIdtBase (
34 # UINT32 IdtBase,
35 # UINT16 IdtLimit
36 # )
37 #
38 # Abstract: Set IDTR with the given physical address
39 #
40 ASM_PFX(SetIdtBase):
41 push %ebp
42 mov %esp,%ebp
43 add $0xfffffff8,%esp
44 mov 0x8(%ebp),%eax
45 mov 0xc(%ebp),%cx
46 mov %eax,0xfffffffc(%ebp)
47 mov %cx,0xfffffffa(%ebp)
48 lidtl 0xfffffffa(%ebp)
49 leave
50 ret