Thread (14 messages) 14 messages, 6 authors, 2020-05-14

Re: [PATCH RFC 3/4] powerpc/microwatt: Add early debug UART support for Microwatt

From: Segher Boessenkool <hidden>
Date: 2020-05-11 07:08:59

Hi!

On Sat, May 09, 2020 at 03:03:40PM +1000, Paul Mackerras wrote:
+	__asm__ volatile("mtmsrd %3,0; ldcix %0,%1,%2; mtmsrd %4,0"
+			 : "=r" (val) : "b" (potato_uart_base), "r" (offset),
+			   "r" (msr & ~MSR_DR), "r" (msr));
That should be  "=&r"(val)  (an earlyclobber), because when %0 is
written, %4 will still be used later.

Looks fine otherwise.

Reviewed-by: Segher Boessenkool <redacted>


Segher
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help