From: Carlos Laviola Date: Mon, 13 Oct 2014 19:16:54 +0000 (+0000) Subject: armhf-build-with-2.6.0 X-Git-Tag: archive/raspbian/3.0.0+dfsg-11+rpi1~1^2^2^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c5df40e0265cb67867ba5ad4e7447acaeaef4ce2;p=fpc.git armhf-build-with-2.6.0 Gbp-Pq: Name armhf-build-with-2.6.0.diff --- diff --git a/fpcsrc/rtl/arm/arm.inc b/fpcsrc/rtl/arm/arm.inc index 894c4c5c..1510e936 100644 --- a/fpcsrc/rtl/arm/arm.inc +++ b/fpcsrc/rtl/arm/arm.inc @@ -895,7 +895,7 @@ end; function SwapEndian(const AValue: LongInt): LongInt;assembler;nostackframe; asm // We're starting with r0 = 4321 -{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5)} +{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5) or defined(ver2_6_0)} mov r2, r0, lsr #24 // r2 = 0004 and r1, r0, #16711680 // r1 = 0300 orr r2, r2, r0, lsl #24 // r2 = 1004 @@ -910,7 +910,7 @@ end; function SwapEndian(const AValue: DWord): DWord;assembler;nostackframe; asm // We're starting with r0 = 4321 -{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5)} +{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5) or defined(ver2_6_0)} mov r2, r0, lsr #24 // r2 = 0004 and r1, r0, #16711680 // r1 = 0300 orr r2, r2, r0, lsl #24 // r2 = 1004 @@ -925,7 +925,7 @@ end; function SwapEndian(const AValue: Int64): Int64; assembler; nostackframe; asm // We're starting with r0 = 4321 r1 = 8765 -{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5)} +{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5) or defined(ver2_6_0)} mov ip, r1 mov r2, r0, lsr #24 // r2 = 0004 @@ -952,7 +952,7 @@ end; function SwapEndian(const AValue: QWord): QWord; assembler; nostackframe; asm // We're starting with r0 = 4321 r1 = 8765 -{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5)} +{$if defined(cpuarmv3) or defined(cpuarmv4) or defined(cpuarmv5) or defined(ver2_6_0)} mov ip, r1 mov r2, r0, lsr #24 // r2 = 0004