[ECOS] PowerPC hangs on memory read
Nick Garnett
nickg@ecoscentric.com
Fri Jun 18 15:30:00 GMT 2004
"Anthony Tonizzo" <atonizzo@lycos.com> writes:
> Nick:
>
> >It is only called at startup.
>
> I spent a good deal of time trying to go to the bottom of
> this. I perused the source code and found that the function
> hal_MMU_init() does all the initialization, and for my
> board defines 3 areas which I was able to identify. By
> placing my PCMCIA memory area in an unused section of one
> of the three, my code ran with MMU enabled.
>
> Problem solved, almost.
>
> Infact, I tried to understand the working of it all, and
> I noticed that hal_MMU_init() relies on a cyg_hal_mem_map[]
> to provide the areas under MMU watch. But I cannot
> figure out where cyg_hal_mem_map[] is defined. I grep'd
> the whole source tree and it appears in two places
> (hal_mem.h and hal_misc.c) and in neither place the
> table contents are defined.
>
> When/where are the contents of cyg_hal_mem_map[] defined?
>
It's defined using the macros define by hal_mem.h in the platform HAL,
look for CYGARC_MEMDESC_* .
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list