You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2021/06/03 22:18:34 UTC
[mynewt-core] branch master updated: pic32: Fix crt0.S build error
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new cb68fa8 pic32: Fix crt0.S build error
cb68fa8 is described below
commit cb68fa8bee040d4906fbf9cad1cf3c469aa0f491
Author: Jerzy Kasenberg <je...@apache.org>
AuthorDate: Thu Jun 3 14:51:48 2021 +0200
pic32: Fix crt0.S build error
xc32 compiler version 3.xx starts to complain
about constant value range
Error: repos/apache-mynewt-core/kernel/os/src/arch/pic32/startup/crt0.S: Assembler messages:
repos/apache-mynewt-core/kernel/os/src/arch/pic32/startup/crt0.S:314: Error: operand 3 out of range `addiu $10,$0,0xFFFFFFFC'
previous compiler did not complain
This changes 32bit unsigned interpretation of -4 (0xFFFFFFFC)
to just -4, so 2.5 and 3.x versions are happy.
-4 can be found in SDK provided crt0.S files.
---
kernel/os/src/arch/pic32/startup/crt0.S | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/os/src/arch/pic32/startup/crt0.S b/kernel/os/src/arch/pic32/startup/crt0.S
index 88397d2..e338046 100644
--- a/kernel/os/src/arch/pic32/startup/crt0.S
+++ b/kernel/os/src/arch/pic32/startup/crt0.S
@@ -311,7 +311,7 @@ _dinit_clear:
_dinit_end:
addu SRC,3
- addiu LEN,$0,0xFFFFFFFC
+ addiu LEN,$0,-4
and SRC,LEN,SRC
lw DST,0(SRC)
bne DST,$0,0b