On 9/28/07, Arnd Bergmann [off-list ref] wrote:
On Friday 28 September 2007, Grant Likely wrote:
quoted
+static void uartlite_putc(unsigned char c)
+{
+while ((in_be32(reg_base + 0x8) & 0x08) != 0); /* spin */
+out_be32(reg_base + 0x4, c);
+}
When coding a spin-loop, it's better to do a cpu_relax() between
each attempt.
Is cpu_relax even implemented in the bootwrapper?
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195