<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 9/29/2014 2:53 PM, Hesham Moustafa
wrote:<br>
</div>
<blockquote
cite="mid:CA+wsVCCtTUj2mG29NTojAnNrf2W2L0=i3RqzaT71Pyaw-pJv3w@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks for committing.
<div><br>
</div>
<div>There are some other few pending patches. This one [1] adds
qemu-system-or32 script to sim-scripts, and this [2] adds a
new RTEMS tester script to test or1ksim BSP running on qemu.</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="http://lists.rtems.org/pipermail/devel/2014-September/008064.html"
target="_blank">http://lists.rtems.org/pipermail/devel/2014-September/008064.html</a></div>
</div>
</blockquote>
This is now committed. <br>
<blockquote
cite="mid:CA+wsVCCtTUj2mG29NTojAnNrf2W2L0=i3RqzaT71Pyaw-pJv3w@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>[2] <a moz-do-not-send="true"
href="http://lists.rtems.org/pipermail/devel/2014-September/008047.html">http://lists.rtems.org/pipermail/devel/2014-September/008047.html</a></div>
</div>
<div class="gmail_extra"><br>
</div>
</blockquote>
As is this.<br>
<br>
Anything else missing?<br>
<br>
--joel<br>
<br>
<blockquote
cite="mid:CA+wsVCCtTUj2mG29NTojAnNrf2W2L0=i3RqzaT71Pyaw-pJv3w@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Sep 29, 2014 at 9:38 PM, Joel
Sherrill <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Sorry. This is now
committed.<br>
<br>
Anything else besides the task stack initialization patch?<br>
<br>
--joel
<div>
<div class="h5"><br>
<div>On 9/29/2014 12:57 AM, Hesham Moustafa wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>This patch is needed for capture, pppd and
any other tests that prompt users to input data
interactively. </div>
<div><br>
</div>
<div>Regards,</div>
<div>Hesham</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Sep 19, 2014 at
9:20 PM, Hesham ALMatary <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:heshamelmatary@gmail.com"
target="_blank">heshamelmatary@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">Implement
uart_read_polled which is needed for any
application that<br>
reads input from users. It works fine with
pppd, capture, and all<br>
termios tests.<br>
---<br>
c/src/lib/libbsp/or1k/or1ksim/console/uart.c
| 13 +++++++++++--<br>
1 file changed, 11 insertions(+), 2
deletions(-)<br>
<br>
diff --git
a/c/src/lib/libbsp/or1k/or1ksim/console/uart.c
b/c/src/lib/libbsp/or1k/or1ksim/console/uart.c<br>
index f1cfa09..c0ee618 100644<br>
---
a/c/src/lib/libbsp/or1k/or1ksim/console/uart.c<br>
+++
b/c/src/lib/libbsp/or1k/or1ksim/console/uart.c<br>
@@ -86,9 +86,18 @@ static int
uart_last_close(int major, int minor, void
*arg)<br>
return 0;<br>
}<br>
<br>
-static int uart_read_polled(int minor)<br>
+static char uart_read_polled(int minor)<br>
{<br>
- return -1;<br>
+ unsigned char lsr;<br>
+ char c;<br>
+<br>
+ /* Get a character when avaiable */<br>
+ do {<br>
+ lsr =
OR1KSIM_REG(OR1KSIM_BSP_UART_REG_LINE_STATUS);<br>
+ } while ((lsr &
OR1KSIM_BSP_UART_REG_LINE_STATUS_DR)<br>
+ !=
OR1KSIM_BSP_UART_REG_LINE_STATUS_DR);<br>
+<br>
+ return
OR1KSIM_REG(OR1KSIM_BSP_UART_REG_RX);<br>
}<br>
<br>
static void uart_write_polled(int minor, char
c)<br>
<span><font color="#888888">--<br>
1.9.3<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
<span class="HOEnZb"><font color="#888888">
<pre cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a moz-do-not-send="true" href="mailto:joel.sherrill@OARcorp.com" target="_blank">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Joel Sherrill, Ph.D. Director of Research & Development
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a> On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985</pre>
</body>
</html>