Bruce:
VS tool chain will generate HII package list as the resource section into the
final EFI image. When DxeCore loads this EFI image and finds its resource
section, DxeCore will install HiiPackageListProtocolGuid on its image handle,
then the driver calls OpenProtocol() can success.
GCC tool chain doesn’t generate HII package list as the resource section into
the final EFI image. So, its HiiPackageListProtocolGuid is not installed, and
can’t be found. This is a feature gap in GCC tool chain.
Thanks
Liming
From: B Cran [mailto:bruce.c...@gmail.com]
Sent: Tuesday, March 31, 2015 2:31 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] HII gEfiHiiPackageListProtocolGuid problem with GCC48
(VS2012x86 works)
I've discovered a difference in behavior between GCC48 and VS2012x86
toolchains: Calling gBS->OpenProtocol(... &gEfiHiiPackageListProtocolGuid ...)
works when built with VS2012x86 but returns Unsupported with GCC48.
A project that replicates the problem (built against the latest UDK2014.SP1
branch) can be downloaded from http://bluestop.org/PackageListGccBugDemo.zip .
It's a modified copy of MdeModulePkg/Universal/HiiResourcesSampleDxe .
Build it on Windows (I use Windows 8.1 Update) with:
build -p PackageListGccBugDemoPkg/PackageListGccBugDemoPkg.dsc -a X64 -t
VS2012x86
And on Linux (I use OpenSUSE 13.2) with:
build -p PackageListGccBugDemoPkg/PackageListGccBugDemoPkg.dsc -a X64 -t GCC48
I've seen the problem under Qemu with OVMF built from the latest UDK2014.SP1
sources, and on a Minnowboard MAX board with 0.78 firmware.
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]
--
Bruce
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel