提交 b0301f47 编写于 作者: R Rich Felker

fix arm __a_barrier_oldkuser when built as thumb

as noted in commit 05870abe, mov lr,pc
is not a valid method for saving the return address in code that might
be built as thumb.

this one is unlikely to matter, since any ISA level that has thumb2
should also have native implementations of atomics that don't involve
kuser_helper, and the affected code is only used on very old kernels
to begin with.
上级 05870abe
......@@ -15,10 +15,10 @@ __a_barrier_oldkuser:
mov r1,r0
mov r2,sp
ldr ip,=0xffff0fc0
mov lr,pc
mov pc,ip
bl 1f
pop {r0,r1,r2,r3,ip,lr}
bx lr
1: bx ip
.global __a_barrier_v6
.hidden __a_barrier_v6
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册