mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
OvmfPkg/QemuVideoDxe/VbeShim: rename Status to Segment0AllocationStatus
This clarifies the purpose of the local variable in InstallVbeShim(). Cc: Aleksei Kovura <alex3kov@zoho.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Igor Mammedov <imammedo@redhat.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Ref: https://bugs.launchpad.net/qemu/+bug/1715700 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Aleksei Kovura <alex3kov@zoho.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
ba1d245f1d
commit
ce461ae240
@ -63,7 +63,7 @@ InstallVbeShim (
|
|||||||
EFI_PHYSICAL_ADDRESS Segment0, SegmentC, SegmentF;
|
EFI_PHYSICAL_ADDRESS Segment0, SegmentC, SegmentF;
|
||||||
UINTN Segment0Pages;
|
UINTN Segment0Pages;
|
||||||
IVT_ENTRY *Int0x10;
|
IVT_ENTRY *Int0x10;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Segment0AllocationStatus;
|
||||||
UINTN Pam1Address;
|
UINTN Pam1Address;
|
||||||
UINT8 Pam1;
|
UINT8 Pam1;
|
||||||
UINTN SegmentCPages;
|
UINTN SegmentCPages;
|
||||||
@ -87,10 +87,14 @@ InstallVbeShim (
|
|||||||
//
|
//
|
||||||
Segment0Pages = 1;
|
Segment0Pages = 1;
|
||||||
Int0x10 = (IVT_ENTRY *)(UINTN)Segment0 + 0x10;
|
Int0x10 = (IVT_ENTRY *)(UINTN)Segment0 + 0x10;
|
||||||
Status = gBS->AllocatePages (AllocateAddress, EfiBootServicesCode,
|
Segment0AllocationStatus = gBS->AllocatePages (
|
||||||
Segment0Pages, &Segment0);
|
AllocateAddress,
|
||||||
|
EfiBootServicesCode,
|
||||||
|
Segment0Pages,
|
||||||
|
&Segment0
|
||||||
|
);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Segment0AllocationStatus)) {
|
||||||
EFI_PHYSICAL_ADDRESS Handler;
|
EFI_PHYSICAL_ADDRESS Handler;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -109,8 +113,12 @@ InstallVbeShim (
|
|||||||
// Otherwise we'll overwrite the Int10h vector, even though we may not own
|
// Otherwise we'll overwrite the Int10h vector, even though we may not own
|
||||||
// the page at zero.
|
// the page at zero.
|
||||||
//
|
//
|
||||||
DEBUG ((EFI_D_INFO, "%a: failed to allocate page at zero: %r\n",
|
DEBUG ((
|
||||||
__FUNCTION__, Status));
|
DEBUG_INFO,
|
||||||
|
"%a: failed to allocate page at zero: %r\n",
|
||||||
|
__FUNCTION__,
|
||||||
|
Segment0AllocationStatus
|
||||||
|
));
|
||||||
} else {
|
} else {
|
||||||
//
|
//
|
||||||
// We managed to allocate the page at zero. SVN r14218 guarantees that it
|
// We managed to allocate the page at zero. SVN r14218 guarantees that it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user