public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Accessing IRAM & DRAM through different segments in MIPS
@ 2008-01-05 10:55 Viswanath Bandi
  2008-01-06  4:55 ` Shinya Kuribayashi
  2008-01-08  2:30 ` Hoi-Ho Chan
  0 siblings, 2 replies; 5+ messages in thread
From: Viswanath Bandi @ 2008-01-05 10:55 UTC (permalink / raw)
  To: u-boot

Hi All,

I am trying to run U-boot on a MIPS 4KEc processor mapped onto FPGA. The 
code is working fine when KSEG0 is configured as un-cached segment (K0 
field in CP0 register 16 configured as 2). But when I make this as 
cached segment, the code crashes and I see that the values on the stack 
are not written correctly. Due to this the program causes some exception 
or the other.

In order to isolate the problem between icache and dcache, I want to try 
and access IRAM using KSEG1 addresses (0xA0000000 onwards) and DRAM 
using KSEG0 addresses (0x80000000) or vice versa. Is the possible? Can 
it be done through some configuration changes or #defines? This way I 
can find out whether instruction is the culprit for not writing the 
value in memory or the data cache.

I would very much appreciate any information in this regard.

Best Regards,
Viswanath Bandi

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

end of thread, other threads:[~2008-01-09  9:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-05 10:55 [U-Boot-Users] Accessing IRAM & DRAM through different segments in MIPS Viswanath Bandi
2008-01-06  4:55 ` Shinya Kuribayashi
2008-01-08  2:30 ` Hoi-Ho Chan
2008-01-09  8:03   ` Viswanath Bandi
2008-01-09  9:45     ` Shinya Kuribayashi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox