<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Catalin Marinas wrote:
<blockquote
cite="mid:1295458353.13373.37.camel@e102109-lin.cambridge.arm.com"
type="cite">
<pre wrap="">On Wed, 2011-01-19 at 06:21 +0000, Stanley.Miao wrote:
</pre>
<blockquote type="cite">
<pre wrap="">2011/1/18 Catalin Marinas <a class="moz-txt-link-rfc2396E" href="mailto:catalin.marinas@arm.com"><catalin.marinas@arm.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">BTW (not related to modules, but since you are looking at this), when
we copy the sigreturn_codes to the vectors page in early_trap_init(),
do they get there in little endian form (as required by BE8)?
</pre>
</blockquote>
<pre wrap="">No, they get there in big endian.They are read as data in the function
setup_return().
retcode = KERN_SIGRETURN_CODE + (idx << 2) + thumb;
</pre>
</blockquote>
<pre wrap=""><!---->
This retcode here is an address in the vectors page which is set to LR
when invoking the signal handler. All fine here.
But the sigreturn_codes array contains instructions which get copied to
the vectors page in the early_trap_init() function. This array has this
instructions in big endian format but they should be converted to little
endian when copied to the vectors page.
</pre>
</blockquote>
I don't have a board in hand for now. When I get a board, I will test
it.<br>
<br>
Stanley.<br>
<br>
</body>
</html>