[ECOS] Question about hal_platform_setup.h (Samsung SNDS) !

RandyLin@mxic.com.tw RandyLin@mxic.com.tw
Wed Nov 19 09:10:00 GMT 2003





On Freitag, 19. Dezember 2003 08:13, RandyLin@mxic.com.tw wrote:
> Q1:  The code blow, is that because the prefetch, so the real address is
> pc-8
>       1:    mov   r1,pc
>             sub   r1,r1,#8

Yes.

>
> Q2:         ldmia r0,{r1-r12}
>             ldr   r0,=KS32C_EXTDBWTH
>             stmia r0,{r1-r12}
>             mov   pc,lr
>       when "stmia r0,{r1-r12}" complete, the memory map change, but
because
>       the prefetch instruction, "mov      pc,lr" can be execute, and lead
> to the address
>       after remap, am i right??
> Q3: follow the Q2, if I insert some code(maybe 2 or 3 instruction)
between
> "stmia r0,{r1-r12}"
>        and "mov pc,lr",I guest the program should be halt, because access
> empty space.am I
>        correct?

Yes I thing so.

>
> If I am wrong, pls ponit it out, or give me some document.
> Thanks.

But note that the hal_platform_setup.h I have made doesn't support DRAM
as the original snds one does, because this didn't work on our ARM
Industrial Module and it has allways SDRAM on board.

Yes, I use SDRAM too.
Thanks for help!
--

___________________________________________________

VS Vision Systems GmbH, Industrial Image Processing
Dipl.-Ing. Roland Caßebohm
Aspelohe 27A, D-22848 Norderstedt, Germany
http://www.visionsystems.de
___________________________________________________







--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list