mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:39:28 +02:00
Add call saved registers for AVR to InitializeABIRules.
This commit is contained in:
parent
b787b45f59
commit
b58c6a5dcb
@ -480,6 +480,26 @@ begin
|
||||
SetCallFrameInformationRegisterCell(Row, 5, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 6, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 7, cfiSameValue, 0, 0);
|
||||
end
|
||||
else if TargetInfo.machineType=mtAVR8 then
|
||||
begin
|
||||
// Registers r2..r17, r28, r29 are call saved
|
||||
SetCallFrameInformationRegisterCell(Row, 2, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 3, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 4, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 5, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 6, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 7, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 8, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 9, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 10, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 11, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 12, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 13, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 14, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 15, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 16, cfiSameValue, 0, 0);
|
||||
SetCallFrameInformationRegisterCell(Row, 17, cfiSameValue, 0, 0);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user