mirror of https://github.com/acidanthera/audk.git
MdeModulePkg/PciBusDxe: Fix a bug in ProcessOptionRomLight
The ProcessOptionRomLight() assumes that OpRom has already been processed in the previous full enumeration and updates AllOpRomProcessed flag to TRUE by default. However, this may not be applicable with other pre-stage boot firmwares. This will update AllOpRomProcessed flag properly by checking PciRomGetImageMapping(). Signed-off-by: Aiden Park <aiden.park@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
3b468095cd
commit
3f90ac3ec0
|
@ -1168,12 +1168,7 @@ ProcessOptionRomLight (
|
|||
ProcessOptionRomLight (Temp);
|
||||
}
|
||||
|
||||
PciRomGetImageMapping (Temp);
|
||||
|
||||
//
|
||||
// The OpRom has already been processed in the first round
|
||||
//
|
||||
Temp->AllOpRomProcessed = TRUE;
|
||||
Temp->AllOpRomProcessed = PciRomGetImageMapping (Temp);
|
||||
|
||||
CurrentLink = CurrentLink->ForwardLink;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue