This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Memory access problem
- From: Gary Thomas <gthomas at ecoscentric dot com>
- To: "Cusson, Pascal" <pascal dot cusson at analog dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 08 Oct 2002 17:08:10 -0600
- Subject: RE: [ECOS] Memory access problem
- References: <8FDC0F9BE1F91D44BE964AA54AAA67B6487E4C@wilmexm3.ad.analog.com>
Please address replies to the discussion list. Private replies are
only available with a support contract.
On Tue, 2002-10-08 at 17:00, Cusson, Pascal wrote:
> I do thinks like *(unsigned int*)0xf0010100 = 0xaaaaaaaa;
>
> I know this isn't the nice way of doing it but it is just for test purpose.
>
> Chances are my immr is missed mapped. When using my JTAG, it gives my 0xf000
> 0000 as immr. However, it seems like eCos does not recognize that segment of
> memory (error: Segmentation Fault).
>
> Do you know of any other place this might be set.
>
> Pascal
>
> PS: The only line I changed in hal_aux.c: IMM = (t_PQ2IMM *)0xf0000000;
> I could not find any hal_aux.h attached is my file
>
The IMMR is normally set to 0xFA200000 by eCos - this matches what
Motorola's PPCbug uses. This is set in the file:
packages/hal/powerpc/mpc8xx/current/include/var_regs.h
>
>
> -----Original Message-----
> From: Gary Thomas [mailto:gthomas@ecoscentric.com]
> Sent: Tuesday, October 08, 2002 6:48 PM
> To: Cusson, Pascal
> Cc: eCos Discussion
> Subject: Re: [ECOS] Memory access problem
>
>
> On Tue, 2002-10-08 at 16:43, Cusson, Pascal wrote:
> > Hi everyone,
> > In the process of porting my ecos on a 8260 board, I cannot access memory
> map
> > registers anymore. Something I used to be able to do with the simulator. I get
> a
> > Segmentation Fault. My question is does eCos prohibit the access to the mapped
> > registers in threads ? If so, how should I access my registers ?
>
> Make sure that they've been properly mapped in. This information
> is kept in the file <platform>/current/src/hal_aux.h
>
> --
> ------------------------------------------------------------
> Gary Thomas |
> eCosCentric, Ltd. |
> +1 (970) 229-1963 | eCos & RedBoot experts
> gthomas@ecoscentric.com |
> http://www.ecoscentric.com/ |
> ------------------------------------------------------------
--
------------------------------------------------------------
Gary Thomas |
eCosCentric, Ltd. |
+1 (970) 229-1963 | eCos & RedBoot experts
gthomas@ecoscentric.com |
http://www.ecoscentric.com/ |
------------------------------------------------------------
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss