<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Sorry. This is now committed.<br>
    <br>
    Anything else besides the task stack initialization patch?<br>
    <br>
    --joel<br>
    <div class="moz-cite-prefix">On 9/29/2014 12:57 AM, Hesham Moustafa
      wrote:<br>
    </div>
    <blockquote
cite="mid:CA+wsVCAF4YrFJN1of-tLoGR-8tYJFyWN9cSpQGeaVUdbvddS6Q@mail.gmail.com"
      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 class="HOEnZb"><font color="#888888">--<br>
                1.9.3<br>
                <br>
              </font></span></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>