public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* Configuring Memory Address Space
@ 2005-03-21 14:21 Raghu
  2005-03-21 14:25 ` David Vrabel
  0 siblings, 1 reply; 2+ messages in thread
From: Raghu @ 2005-03-21 14:21 UTC (permalink / raw)
  To: ecos

Hi, 

I have a custom IXP425 based board. And following
memory map. 

0x5000.0000 CS0 Boot Flash, size 8 MBytes
0x5200.0000 CS2 FPGA Reg,   size 16 MBytes
0x5300.0000 CS3 LIC  Reg,   size 16 MBytes

The CS2 ( FPGA ) registers are 16 bit registers, so
the CS2 i.e. 0xC4000008 = 0xBFFF3C02
 
The CS4 ( LIC ) resisters are 8 bit registers, so 
the CS3 i.e. 0xC400000C = 0xBFFF3C43

In the hal_platform_setup.h file, I used the macro, 

IXP_MAP_EXP 2, ( 1 << 24 ), 0, 0, 0, 0 // 0x52000000
IXP_MAP_EXP 3, ( 1 << 24 ), 0, 0, 0, 0 // 0x53000000

But in Redboot when I dump these address locations, 
I get "illegal access" 
----------------------------------------------------
RedBoot> x -b 0xc4000000 -l 16 -4
C4000000: BFFF3C42 BFFF3842 BFFF3C02 BFFF3C43
RedBoot> x -b 0x52000000 -l 16 -2
illegal mem
RedBoot> x -b 0x53000000 -l 16 -2
illegal mem
----------------------------------------------------
Is the MMU setting an issue ?? Thanks in advance.

Regards,
Raghu









		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Configuring Memory Address Space
  2005-03-21 14:21 Configuring Memory Address Space Raghu
@ 2005-03-21 14:25 ` David Vrabel
  0 siblings, 0 replies; 2+ messages in thread
From: David Vrabel @ 2005-03-21 14:25 UTC (permalink / raw)
  To: Raghu; +Cc: ecos

Raghu wrote:
> 
> Is the MMU setting an issue ?? Thanks in advance.

I suspect so. Take a look at hal_platform_extras.h

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-21 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 14:21 Configuring Memory Address Space Raghu
2005-03-21 14:25 ` David Vrabel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).