<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 27, 2022 at 5:46 PM Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 28/10/2022 9:25 am, Kinsey Moore wrote:<br>
> On Thu, Oct 27, 2022 at 5:10 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a><br>
> <mailto:<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>>> wrote:<br>
> <br>
>     On 28/10/2022 9:05 am, Kinsey Moore wrote:<br>
>     > RTEMS may be booted from a dirty environment. Ensure that FPU trap<br>
>     > settings are consistent.<br>
>     > ---<br>
>     >  bsps/aarch64/shared/start/start.S | 10 ++++++++++<br>
>     >  1 file changed, 10 insertions(+)<br>
>     ><br>
>     > diff --git a/bsps/aarch64/shared/start/start.S<br>
>     b/bsps/aarch64/shared/start/start.S<br>
>     > index 8bd4f86f4e..de0fdf4c80 100644<br>
>     > --- a/bsps/aarch64/shared/start/start.S<br>
>     > +++ b/bsps/aarch64/shared/start/start.S<br>
>     > @@ -307,6 +307,16 @@ _el1_start:<br>
>     > <br>
>     >    /* FPU does not need to be enabled on AArch64 */<br>
>     > <br>
>     > +  /* Ensure FPU traps are disabled by default */<br>
>     > +  mrs x0, FPCR<br>
>     > +  bic x0, x0, #(1 << 8)<br>
>     > +  bic x0, x0, #(1 << 9)<br>
>     > +  bic x0, x0, #(1 << 10)<br>
>     > +  bic x0, x0, #(1 << 11)<br>
>     > +  bic x0, x0, #(1 << 12)<br>
>     > +  bic x0, x0, #(1 << 15)<br>
> <br>
>     Does `bic x0, x0, #((1 << 8) | (1 << 9) | (1 << 10) | ...)` work?<br>
> <br>
> The assembler complains about the operand being out of range. I can split it<br>
> into 8-12 in one and 15 by itself and everything seems to work.<br>
<br>
Huh? If you use a hex value does it work?<br>
<br></blockquote><div>I think the equivalent value would be 0x9f00. That generates the same error as putting all the components on the same line. I think there's a 6-bit immediate involved that's the limitation.</div><div><br></div><div>Kinsey <br></div></div></div>