mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 09:04:07 +02:00
updated BDS to get capsule information from UEFI capsule HOB instead of CAPSULE_HOB_INFO(one GUIDed HOB).
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9379 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b6b55af34c
commit
019dfb9c28
@ -133,7 +133,6 @@
|
|||||||
gEfiMiscSubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding misc sub class record)
|
gEfiMiscSubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding misc sub class record)
|
||||||
gEfiMemorySubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding memory record)
|
gEfiMemorySubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding memory record)
|
||||||
gEfiProcessorSubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding processor record)
|
gEfiProcessorSubClassGuid ## CONSUMES ## GUID (Indicate the datahub for holding processor record)
|
||||||
gEfiCapsuleVendorGuid ## CONSUMES ## GUID (Indicate the hob for holding capsule update image)
|
|
||||||
gEfiHiiPlatformSetupFormsetGuid ## CONSUMES ## GUID (Indicate the formset class guid to be displayed)
|
gEfiHiiPlatformSetupFormsetGuid ## CONSUMES ## GUID (Indicate the formset class guid to be displayed)
|
||||||
gEfiIfrTianoGuid ## CONSUMES ## GUID (Extended IFR Guid Opcode)
|
gEfiIfrTianoGuid ## CONSUMES ## GUID (Extended IFR Guid Opcode)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
BDS routines to handle capsules.
|
BDS routines to handle capsules.
|
||||||
|
|
||||||
Copyright (c) 2004 - 2008, Intel Corporation. <BR>
|
Copyright (c) 2004 - 2009, Intel Corporation. <BR>
|
||||||
All rights reserved. This program and the accompanying materials
|
All rights reserved. This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -51,7 +51,6 @@ BdsProcessCapsules (
|
|||||||
VOID **CapsulePtr;
|
VOID **CapsulePtr;
|
||||||
VOID **CapsulePtrCache;
|
VOID **CapsulePtrCache;
|
||||||
EFI_GUID *CapsuleGuidCache;
|
EFI_GUID *CapsuleGuidCache;
|
||||||
CAPSULE_HOB_INFO *CapsuleHobInfo;
|
|
||||||
|
|
||||||
CapsuleNumber = 0;
|
CapsuleNumber = 0;
|
||||||
CapsuleTotalNumber = 0;
|
CapsuleTotalNumber = 0;
|
||||||
@ -73,9 +72,8 @@ BdsProcessCapsules (
|
|||||||
// Find all capsule images from hob
|
// Find all capsule images from hob
|
||||||
//
|
//
|
||||||
HobPointer.Raw = GetHobList ();
|
HobPointer.Raw = GetHobList ();
|
||||||
while ((HobPointer.Raw = GetNextGuidHob (&gEfiCapsuleVendorGuid, HobPointer.Raw)) != NULL) {
|
while ((HobPointer.Raw = GetNextHob (EFI_HOB_TYPE_UEFI_CAPSULE, HobPointer.Raw)) != NULL) {
|
||||||
CapsuleTotalNumber ++;
|
CapsuleTotalNumber ++;
|
||||||
|
|
||||||
HobPointer.Raw = GET_NEXT_HOB (HobPointer);
|
HobPointer.Raw = GET_NEXT_HOB (HobPointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,10 +99,8 @@ BdsProcessCapsules (
|
|||||||
// Find all capsule images from hob
|
// Find all capsule images from hob
|
||||||
//
|
//
|
||||||
HobPointer.Raw = GetHobList ();
|
HobPointer.Raw = GetHobList ();
|
||||||
while ((HobPointer.Raw = GetNextGuidHob (&gEfiCapsuleVendorGuid, HobPointer.Raw)) != NULL) {
|
while ((HobPointer.Raw = GetNextHob (EFI_HOB_TYPE_UEFI_CAPSULE, HobPointer.Raw)) != NULL) {
|
||||||
CapsuleHobInfo = GET_GUID_HOB_DATA (HobPointer.Guid);
|
CapsulePtr [CapsuleNumber++] = (VOID *) (UINTN) HobPointer.Capsule->BaseAddress;
|
||||||
CapsulePtr [CapsuleNumber++] = (VOID *)(UINTN)(CapsuleHobInfo->BaseAddress);
|
|
||||||
|
|
||||||
HobPointer.Raw = GET_NEXT_HOB (HobPointer);
|
HobPointer.Raw = GET_NEXT_HOB (HobPointer);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -206,3 +202,4 @@ BdsProcessCapsules (
|
|||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user