]>
Commit | Line | Data |
---|---|---|
1 | ;------------------------------------------------------------------------------\r | |
2 | ;\r | |
3 | ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r | |
4 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
5 | ;\r | |
6 | ; Module Name:\r | |
7 | ;\r | |
8 | ; ReadIdtr.Asm\r | |
9 | ;\r | |
10 | ; Abstract:\r | |
11 | ;\r | |
12 | ; AsmReadIdtr function\r | |
13 | ;\r | |
14 | ; Notes:\r | |
15 | ;\r | |
16 | ;------------------------------------------------------------------------------\r | |
17 | \r | |
18 | SECTION .text\r | |
19 | \r | |
20 | ;------------------------------------------------------------------------------\r | |
21 | ; VOID\r | |
22 | ; EFIAPI\r | |
23 | ; InternalX86ReadIdtr (\r | |
24 | ; OUT IA32_DESCRIPTOR *Idtr\r | |
25 | ; );\r | |
26 | ;------------------------------------------------------------------------------\r | |
27 | global ASM_PFX(InternalX86ReadIdtr)\r | |
28 | ASM_PFX(InternalX86ReadIdtr):\r | |
29 | mov eax, [esp + 4]\r | |
30 | sidt [eax]\r | |
31 | ret\r | |
32 | \r |