Skip to content

arm: record_sp_limit is assuming arm > ARM7 #9452

Closed
@pnkfelix

Description

@pnkfelix

In my attempts to run a hello world targetting my ARM chromebook, I am getting an illegal instruction from the first instruction of record_sp_limit:

https://github.com/mozilla/rust/blob/9c39992021477740673a5b4982014678743c7fdf/src/rt/arch/arm/record_sp.S#L18

The problem, AFAICT, is that mrc p15, #0, r3, c13, c0, #3 is too new of an instruction to use on this platform (armv7l GNU/Linux, Arch distribution).

At least, that's my interpretation of the summary provided by the netbsd folks here:
http://mail-index.netbsd.org/port-arm/2012/02/14/msg001303.html

Commenting out the mrc lines in record_sp_limit and get_sp_limit seem to get the test a bit further (so that it crashes in pthread_mutex_lock instead...

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 state

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions