* Fixed threadvars alignment for ARM CPU.

git-svn-id: trunk@1036 -
This commit is contained in:
yury 2005-09-02 11:58:19 +00:00
parent 24cf46266d
commit 398b31226b

View File

@ -78,6 +78,10 @@ CONST
procedure SysInitThreadvar(var offset : dword;size : dword);
begin
offset:=threadvarblocksize;
{$ifdef CPUARM}
// Data must be allocated at 4 bytes boundary for ARM
size:=(size + 3) and not dword(3);
{$endif CPUARM}
inc(threadvarblocksize,size);
end;