Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019408f9 authored by Mikulas Patocka's avatar Mikulas Patocka Committed by David S. Miller
Browse files

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: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f58189d
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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))