mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
CpuArchLib: Specified IdtTable size precisely.
This commit is contained in:
parent
a838238251
commit
98f13417fb
@ -728,9 +728,9 @@ InitInterruptDescriptorTable (
|
|||||||
//
|
//
|
||||||
// Increase Interrupt Descriptor Table and Copy the old IDT table in
|
// Increase Interrupt Descriptor Table and Copy the old IDT table in
|
||||||
//
|
//
|
||||||
IdtTable = AllocatePages (1);
|
IdtTable = AllocatePages (EFI_SIZE_TO_PAGES (sizeof (IA32_IDT_GATE_DESCRIPTOR) * CPU_INTERRUPT_NUM));
|
||||||
ASSERT (IdtTable != NULL);
|
ASSERT (IdtTable != NULL);
|
||||||
SetMem (IdtTable, EFI_PAGE_SIZE, 0);
|
SetMem (IdtTable, sizeof (IA32_IDT_GATE_DESCRIPTOR) * CPU_INTERRUPT_NUM, 0);
|
||||||
CopyMem (IdtTable, (VOID *)IdtDescriptor.Base, sizeof (IA32_IDT_GATE_DESCRIPTOR) * IdtEntryCount);
|
CopyMem (IdtTable, (VOID *)IdtDescriptor.Base, sizeof (IA32_IDT_GATE_DESCRIPTOR) * IdtEntryCount);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user