-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mips32r2_common: Update thread_arch for compatibility with newer toolchains #10009
Conversation
On ubuntu 16.04 it fixes the first issue with the new mips toolchain but I have the new following one with
I will try with the updated docker image as I do not have the issue on |
I get that error too on my machine, but not in the docker image. |
It's strange because the objcopy version is the same… |
@cladmi did you test with the new Docker image? |
I tried and I think I did not have issues, I should verify tomorrow on the other laptop. However I also still need to test an error path that triggers If the code works but we still get the It's however in my priority list to have a working docker image. |
@@ -35,6 +35,10 @@ | |||
#define MM_SYSCALL (0x8B7C0000) | |||
#define MM_SYSCALL_MASK (0xfffffc00) | |||
|
|||
/* For backwards compatibility with mips-mti-elf toolchain release 2016.05-03 */ | |||
#if !defined(_MIPS_HAL_NOMIPS16) | |||
#define _MIPS_HAL_NOMIPS16 __attribute__((nomips16)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe put in the header commit message that it is defined in mips/hal.h
It compiles for all three mips boards with the RIOT-OS/riotdocker#47 docker image I did not have time to test today, will be on thursday. |
The difference I have between the ubuntu 16.04 and the docker container is the
If I try running with the non
|
But it also fails with |
There is a reference here but not helping much http://forum.pinguino.cc/showthread.php?tid=3267 |
It was also already mentioned by @aabadie in RIOT-OS/Release-Specs#44 (comment) |
eb6beec
to
5f88385
Compare
Rebased, added code comment about why we need the macro in the older toolchains. |
I suppose this was superseded by #11986 and can now be closed? |
Contribution description
This should fix the build issue described in RIOT-OS/riotdocker#47
Testing procedure
Install a new version of the mips-mti-elf toolchain, or use the proposed Docker image in RIOT-OS/riotdocker#47
Run some test applications on actual hardware (e.g. pic32-clicker or pic32-wifire)
Issues/PRs references
RIOT-OS/riotdocker#47