]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X86WriteIdtr.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / X86WriteIdtr.c
CommitLineData
e1f414b6 1/** @file\r
2 IA-32/x64 AsmWriteIdtr()\r
3\r
bb817c56 4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
e1f414b6 7**/\r
8\r
1efcc4ae 9\r
f734a10a 10\r
e1f414b6 11\r
12#include "BaseLibInternals.h"\r
13\r
14/**\r
2fc60b70 15 Writes the current Interrupt Descriptor Table Register(IDTR) descriptor.\r
e1f414b6 16\r
17 Writes the current IDTR descriptor and returns it in Idtr. This function is\r
030cd1a2 18 only available on IA-32 and x64.\r
e1f414b6 19\r
20 If Idtr is NULL, then ASSERT().\r
21\r
2fc59a00 22 @param Idtr The pointer to a IDTR descriptor.\r
e1f414b6 23\r
24**/\r
25VOID\r
26EFIAPI\r
27AsmWriteIdtr (\r
28 IN CONST IA32_DESCRIPTOR *Idtr\r
29 )\r
30{\r
31 ASSERT (Idtr != NULL);\r
32 InternalX86WriteIdtr (Idtr);\r
33}\r