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:
xli24 2010-08-10 06:57:32 +00:00
parent 9572320f13
commit 5b7e61a0c5
2 changed files with 2 additions and 2 deletions

View File

@ -1061,7 +1061,7 @@ InitInterruptDescriptorTable (
IdtPtrAlignmentBuffer = AllocatePool (sizeof (*IdtPtr) + 16);
IdtPtr = ALIGN_POINTER (IdtPtrAlignmentBuffer, 16);
IdtPtr->Base = (UINT32)(((UINTN)(VOID*) gIdtTable) & (BASE_4GB-1));
IdtPtr->Limit = sizeof (gIdtTable) - 1;
IdtPtr->Limit = (UINT16) (sizeof (gIdtTable) - 1);
AsmWriteIdtr (IdtPtr);

View File

@ -188,7 +188,7 @@ InitGlobalDescriptorTable (
// Write GDT register
//
gdtPtr.Base = (UINT32)(UINTN)(VOID*) gdt;
gdtPtr.Limit = sizeof (GdtTemplate) - 1;
gdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1);
AsmWriteGdtr (&gdtPtr);
//