<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>OK, I will go through these. Thanks a lot.</div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div><font color="#0000ff">Best wishes,</font></div><div><font color="#0000ff">Tim Tian</font></div><div><font color="#0000ff">xuelin.tian@qkmtech.com</font></div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:chrisj@rtems.org">Chris Johns</a></div><div><b>Date:</b> 2016-09-29 12:22</div><div><b>To:</b> <a href="mailto:xuelin.tian@qkmtech.com">xuelin.tian@qkmtech.com</a>; <a href="mailto:users@rtems.org">users@rtems.org</a></div><div><b>Subject:</b> Re: Zynq exception handler</div></div></div><div><div>On 29/09/2016 13:38, xuelin.tian@qkmtech.com wrote:</div>
<div>> I check the arm4-exception-default.S to see that, there are a few</div>
<div>> default handlers for ARM exceptions. But the default handlers are just</div>
<div>> to store the CPSR and return address. I may want to add some more to</div>
<div>> these. Because when I define some functions, error (multiple definition)</div>
<div>> comes up. Any hints about this? Thank you.</div>
<div> </div>
<div>Have a look in my debug server code which I am developing. You can find </div>
<div>it here </div>
<div>https://ftp.rtems.org/pub/rtems/people/chrisj/dbserver/dbserver-1.0-20160915.tar.bz2</div>
<div> </div>
<div>There are a couple of levels you can use to manage the error. The first </div>
<div>is via the RTEMS interfaces. Look in init.c at the line:</div>
<div> </div>
<div>#define CONFIGURE_INITIAL_EXTENSIONS { .fatal = fatal_extension }</div>
<div> </div>
<div>Any of the error traps will end up here for you with a suitable frame to </div>
<div>decode the issue. This is preferred.</div>
<div> </div>
<div>If you need to get down to the hardware have a look in </div>
<div>rtems-dbserver-arm.c and the rtems_dbserver_target_enable call. It </div>
<div>updates the CP15 directly to have control pass directly to local </div>
<div>exception handlers. This code also shows how to use naked handlers. You </div>
<div>need to know how to handle the exception when at this level.</div>
<div> </div>
<div>Chris</div>
<div> </div>
<div> </div>
</div></blockquote>
</body></html>