public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Viswanath Bandi <bandiv@txc.stpn.soft.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Accessing IRAM & DRAM through different segments in MIPS
Date: Sat, 05 Jan 2008 16:25:02 +0530	[thread overview]
Message-ID: <477F6206.5030103@txc.stpn.soft.net> (raw)

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

             reply	other threads:[~2008-01-05 10:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-05 10:55 Viswanath Bandi [this message]
2008-01-06  4:55 ` [U-Boot-Users] Accessing IRAM & DRAM through different segments in MIPS Shinya Kuribayashi
2008-01-08  2:30 ` Hoi-Ho Chan
2008-01-09  8:03   ` Viswanath Bandi
2008-01-09  9:45     ` Shinya Kuribayashi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477F6206.5030103@txc.stpn.soft.net \
    --to=bandiv@txc.stpn.soft.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox