提交 019408f9 编写于 作者: M Mikulas Patocka 提交者: David S. Miller

sparc64: Fill a missing delay slot.

If the code were already aligned to 64 bytes, wr instruction would be executed
twice --- once in delay slot and once in the jump target.
Signed-off-by: NMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0f58189d
...@@ -106,6 +106,7 @@ do { __asm__ __volatile__("ba,pt %%xcc, 1f\n\t" \ ...@@ -106,6 +106,7 @@ do { __asm__ __volatile__("ba,pt %%xcc, 1f\n\t" \
*/ */
#define write_pic(__p) \ #define write_pic(__p) \
__asm__ __volatile__("ba,pt %%xcc, 99f\n\t" \ __asm__ __volatile__("ba,pt %%xcc, 99f\n\t" \
" nop\n\t" \
".align 64\n" \ ".align 64\n" \
"99:wr %0, 0x0, %%pic\n\t" \ "99:wr %0, 0x0, %%pic\n\t" \
"rd %%pic, %%g0" : : "r" (__p)) "rd %%pic, %%g0" : : "r" (__p))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册