mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
Add explicit type cast to suppress possible warning of precession loss.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10783 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9572320f13
commit
5b7e61a0c5
@ -1061,7 +1061,7 @@ InitInterruptDescriptorTable (
|
|||||||
IdtPtrAlignmentBuffer = AllocatePool (sizeof (*IdtPtr) + 16);
|
IdtPtrAlignmentBuffer = AllocatePool (sizeof (*IdtPtr) + 16);
|
||||||
IdtPtr = ALIGN_POINTER (IdtPtrAlignmentBuffer, 16);
|
IdtPtr = ALIGN_POINTER (IdtPtrAlignmentBuffer, 16);
|
||||||
IdtPtr->Base = (UINT32)(((UINTN)(VOID*) gIdtTable) & (BASE_4GB-1));
|
IdtPtr->Base = (UINT32)(((UINTN)(VOID*) gIdtTable) & (BASE_4GB-1));
|
||||||
IdtPtr->Limit = sizeof (gIdtTable) - 1;
|
IdtPtr->Limit = (UINT16) (sizeof (gIdtTable) - 1);
|
||||||
|
|
||||||
AsmWriteIdtr (IdtPtr);
|
AsmWriteIdtr (IdtPtr);
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@ InitGlobalDescriptorTable (
|
|||||||
// Write GDT register
|
// Write GDT register
|
||||||
//
|
//
|
||||||
gdtPtr.Base = (UINT32)(UINTN)(VOID*) gdt;
|
gdtPtr.Base = (UINT32)(UINTN)(VOID*) gdt;
|
||||||
gdtPtr.Limit = sizeof (GdtTemplate) - 1;
|
gdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1);
|
||||||
AsmWriteGdtr (&gdtPtr);
|
AsmWriteGdtr (&gdtPtr);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user