]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/Ia32/WriteIdt.S
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Pei / PeiLib / Ia32 / WriteIdt.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# WriteIdt.Asm\r
15#\r
16# Abstract:\r
17#\r
18# SetIdtBase 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\r
30.globl ASM_PFX(SetIdtBase)\r
31\r
32# void\r
33# SetIdtBase (\r
34# UINT32 IdtBase,\r
35# UINT16 IdtLimit \r
36# )\r
37#\r
38# Abstract: Set IDTR with the given physical address\r
39#\r
40ASM_PFX(SetIdtBase):\r
41 push %ebp\r
42 mov %esp,%ebp\r
43 add $0xfffffff8,%esp\r
44 mov 0x8(%ebp),%eax\r
45 mov 0xc(%ebp),%cx\r
46 mov %eax,0xfffffffc(%ebp)\r
47 mov %cx,0xfffffffa(%ebp)\r
48 lidtl 0xfffffffa(%ebp)\r
49 leave \r
50 ret \r