<div dir="ltr">Hi,<div><br></div><div>I encountered a problem when using qemu-system-arm to simulate RTEMS RTL using `qemu-system-arm -no-reboot -net none -nographic -M realview-pbx-a9 -m 256M -kernel build/arm-rtems4.11-realview_pbx_a9_qemu/rtld`</div>
<div><br></div><div>it continuly outputs the following msg, but not run into a shell prompt:</div><div>"</div><div><div>pthread_setspecific(shell_current_env_key)</div><div>Starting shell....</div><div><br></div><div>
pthread_setspecific(shell_current_env_key)</div><div>Starting shell....</div><div><br></div><div>pthread_setspecific(shell_current_env_key)</div><div>Starting shell....</div><div><br></div><div>pthread_setspecific(shell_current_env_key)</div>
<div>Starting shell....</div></div><div>"</div><div>I found that  `<span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">sc</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">=</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">rtems_shell_init </span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">(</span><span class="" style="font-size:12px;color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">"fstst"</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">60</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;font-weight:bold;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">*</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">1024</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">150</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">"/dev/console"</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">0</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,153,153);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">1</span><span class="" style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">,</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre"> </span><span class="" style="font-size:12px;color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">NULL</span><span style="font-size:12px;color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;line-height:18px;white-space:pre">);</span>`  returns immediately with the return value RTEMS_SUCCESSFULL.</div>
<div><br></div><div>If I `git reset --hard <b>ffc862cbf567</b>` to the following RTEMS commit,</div><div><div>"commit <b>ffc862cbf567</b>068d1cc2b8417bafdf808dfcc67a</div><div>Author: Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>></div>
<div>Date:   Tue Sep 17 13:08:49 2013 +0200</div><div><br></div><div>    bsp/realview-pbx-a9: Add NULL pointer protection</div><div><br></div><div>    Qemu Git version 8641136c54d216edb5bb8ef723c754039b4ce5cf3 or later is</div>
<div>    required."</div></div><div>RTL runs well. I am not familiar with RTEMS internal, not sure why this. The qemu verison is 2.0.0. RTEMS is 4.11.</div><div><br></div><div>Regards,</div><div>Peng.</div></div>