mirror of https://github.com/acidanthera/audk.git
Refine type cast.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9574 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d6d8e8925f
commit
43e332071d
|
@ -146,7 +146,7 @@ Register (
|
||||||
// buffer and event trigger.
|
// buffer and event trigger.
|
||||||
//
|
//
|
||||||
if (Tpl != TPL_HIGH_LEVEL) {
|
if (Tpl != TPL_HIGH_LEVEL) {
|
||||||
CallbackEntry->StatusCodeDataBuffer = (EFI_PHYSICAL_ADDRESS) AllocatePool (EFI_PAGE_SIZE);
|
CallbackEntry->StatusCodeDataBuffer = (EFI_PHYSICAL_ADDRESS) (UINTN) AllocatePool (EFI_PAGE_SIZE);
|
||||||
CallbackEntry->BufferSize = EFI_PAGE_SIZE;
|
CallbackEntry->BufferSize = EFI_PAGE_SIZE;
|
||||||
CallbackEntry->EndPointer = CallbackEntry->StatusCodeDataBuffer;
|
CallbackEntry->EndPointer = CallbackEntry->StatusCodeDataBuffer;
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEvent (
|
||||||
|
@ -288,8 +288,8 @@ ReportDispatcher (
|
||||||
(VOID *) (UINTN) CallbackEntry->StatusCodeDataBuffer
|
(VOID *) (UINTN) CallbackEntry->StatusCodeDataBuffer
|
||||||
);
|
);
|
||||||
if (NewBuffer != NULL) {
|
if (NewBuffer != NULL) {
|
||||||
CallbackEntry->EndPointer = (EFI_PHYSICAL_ADDRESS) NewBuffer + (CallbackEntry->EndPointer - CallbackEntry->StatusCodeDataBuffer);
|
CallbackEntry->EndPointer = (EFI_PHYSICAL_ADDRESS) (UINTN) NewBuffer + (CallbackEntry->EndPointer - CallbackEntry->StatusCodeDataBuffer);
|
||||||
CallbackEntry->StatusCodeDataBuffer = (EFI_PHYSICAL_ADDRESS) NewBuffer;
|
CallbackEntry->StatusCodeDataBuffer = (EFI_PHYSICAL_ADDRESS) (UINTN) NewBuffer;
|
||||||
CallbackEntry->BufferSize *= 2;
|
CallbackEntry->BufferSize *= 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue