mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:46:12 +02:00
* Fixed threadvars alignment for ARM CPU.
git-svn-id: trunk@1036 -
This commit is contained in:
parent
24cf46266d
commit
398b31226b
@ -78,6 +78,10 @@ CONST
|
|||||||
procedure SysInitThreadvar(var offset : dword;size : dword);
|
procedure SysInitThreadvar(var offset : dword;size : dword);
|
||||||
begin
|
begin
|
||||||
offset:=threadvarblocksize;
|
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);
|
inc(threadvarblocksize,size);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user