This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New IMMR address not recognized


Pascal,

Is it just one specific register in the 0xF001xxxx memory space that causes the segmentation fault, or is it any memory address in the range?

You can read the value of the IMMR. For instance, at the RedBoot prompt, I can type

RedBoot> x -b 0x047101a8 -4 -l 4
047101A8: 04700011
RedBoot>

The upper 16 bits (0470) tell me that the internal memory mapped registers are at base 0x04700000. The lower 16 bits give version information.

If the value of the IMMR that you read is similar to the one I am showing here, then I am not surprised that writing to an address in the range 0xF001xxxx crashes the PPC.

How are you changing the IMMR? Are you loading code with RedBoot?


At 03:44 PM 11/6/2002 -0500, Cusson, Pascal wrote:
Hi Patrick,
I have a small question for you on the 8260 port you gave me. I am trying to make my IMMR 0xF0000000 instead of 0x04700000. The reason being that it is the default on my board and that my entire application uses 0xF0000000.

So far I have modified all files containing 0x04700000 under powerpc/mpc8260 and powerpc/ts6. However, when writing one of the register at address 0xf001xxxx, I get a segmentation fault. Meaning I am not writing in at a valid address. However I can write at address 0x04700000 no problem. Is there something else I need to modify in eCos ?

Thanks for you help

Pascal

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
Paul Fine
Senior Member of Technical Staff
Delphi Communication Systems, Inc.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]