EmulatorPkg: Enable CLANG9 tool chain
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1603 1. Add WIN_HOST_BUILD macro check for CLANG9 tool chain build -p EmulatorPkg\EmulatorPkg.dsc -a IA32 -DWIN_HOST_BUILD=TRUE -t CLANG9 build -p EmulatorPkg\EmulatorPkg.dsc -a X64 -DWIN_HOST_BUILD=TRUE -t CLANG9 2. Append CLANG CC and LINK flags to generate windows HOST. 3. Fix WinHost issue to call GetProcessAffinityMask() API. The input parameter should be UINTN pointer instead of UINT32 pointer. Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Ray Ni <ray.ni@intel.com> Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
@@ -356,7 +356,7 @@ Returns:
|
||||
INTN
|
||||
EFIAPI
|
||||
main (
|
||||
IN INTN Argc,
|
||||
IN INT Argc,
|
||||
IN CHAR8 **Argv,
|
||||
IN CHAR8 **Envp
|
||||
)
|
||||
@@ -391,8 +391,8 @@ Returns:
|
||||
VOID *SecFile;
|
||||
CHAR16 *MemorySizeStr;
|
||||
CHAR16 *FirmwareVolumesStr;
|
||||
UINT32 ProcessAffinityMask;
|
||||
UINT32 SystemAffinityMask;
|
||||
UINTN ProcessAffinityMask;
|
||||
UINTN SystemAffinityMask;
|
||||
INT32 LowBit;
|
||||
|
||||
//
|
||||
@@ -414,7 +414,7 @@ Returns:
|
||||
// Determine the first thread available to this process.
|
||||
//
|
||||
if (GetProcessAffinityMask (GetCurrentProcess (), &ProcessAffinityMask, &SystemAffinityMask)) {
|
||||
LowBit = (INT32)LowBitSet32 (ProcessAffinityMask);
|
||||
LowBit = (INT32)LowBitSet32 ((UINT32)ProcessAffinityMask);
|
||||
if (LowBit != -1) {
|
||||
//
|
||||
// Force the system to bind the process to a single thread to work
|
||||
|
Reference in New Issue
Block a user