mirror of
https://git.musl-libc.org/git/musl
synced 2025-03-24 19:43:01 +03:00
fix arm a_crash for big endian
contrary to commit 89e149d275a7699a4a5e4c98bab267648f64cbba, big endian arm does need the instruction bytes in big endian order. rather than trying to use a special encoding that works as arm or thumb, simply encode the simplest/canonical undefined instructions dependent on whether __thumb__ is defined.
This commit is contained in:
parent
89e149d275
commit
e7a1118984
@ -66,9 +66,11 @@ static inline void a_barrier()
|
|||||||
#define a_crash a_crash
|
#define a_crash a_crash
|
||||||
static inline void a_crash()
|
static inline void a_crash()
|
||||||
{
|
{
|
||||||
__asm__ __volatile__(".byte 0xf1, 0xde"
|
__asm__ __volatile__(
|
||||||
#ifndef __thumb__
|
#ifndef __thumb__
|
||||||
", 0xfd, 0xe7"
|
".word 0xe7f000f0"
|
||||||
|
#else
|
||||||
|
".short 0xdeff"
|
||||||
#endif
|
#endif
|
||||||
: : : "memory");
|
: : : "memory");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user