mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fix crash on RHEL-based distros.
Looks like GCC (4.4.x) on RHEL is built with some optimization flags, which caused crash inside assembler code (when using inline-cast: uint->uchar->uint from GetNzbSubID down to find_maskwidth). Tested this change on 7 different distros, so far - everything seems to be working.
This commit is contained in:
parent
12dbf49533
commit
0ebafa695c
|
|
@ -522,9 +522,9 @@ next:
|
|||
// processors per core
|
||||
|
||||
tblSMTID[j] = GetNzbSubID(apicID, MaxLPPerCore, 0);
|
||||
tblCoreID[j] = GetNzbSubID(apicID,
|
||||
MaxCorePerPhysicalProc(),
|
||||
(unsigned char) find_maskwidth(MaxLPPerCore));
|
||||
unsigned char maxCorePPP = MaxCorePerPhysicalProc();
|
||||
unsigned char maskWidth = find_maskwidth(MaxLPPerCore);
|
||||
tblCoreID[j] = GetNzbSubID(apicID, maxCorePPP, maskWidth);
|
||||
|
||||
// Extract package ID, assume single cluster.
|
||||
// Shift value is the mask width for max Logical per package
|
||||
|
|
|
|||
Loading…
Reference in a new issue