[raspi-internals] Re: caches?

  • From: Volker Barthelmann <vb@xxxxxxxxxxxx>
  • To: raspi-internals@xxxxxxxxxxxxx
  • Date: Fri, 24 May 2013 07:57:53 +0200

On 23.05.2013 06:44, Herman Hermitage wrote:
Eizo-san has reported problems in the past.  I cant remember entirely
how he resolved them.  I recall he found if he used base+512 and not the
first 512 bytes of allocated memory for instructions he was ok.

To test this, I added an option to my loader that will leave the first 1024 bytes unused. Unfortunately, this did not help. Actually I can run a program several times as long as I do not change the offset setting. Once I change it, I get problems.

I
havent had any issues, but I'm quitting out and re-running a ARM linux
process each time I try a different test.

I am also quitting the load on the ARM side each time. I have to reboot to get it working.

If you can reduce the problem to the smallest repeatable sequence, I can
have a shot at debugging it.

Unfortunately, it does not happen with very small code. Perhaps a certain size is needed. E.g. when I use a printf with format specifiers, it will pull in a lot of code from the C library and cause problems with a very small main()-function only.

Otherwise, I need quite more code to get the problem.

I have uploaded a preview of my toolchain (see other mail). Maybe you find something that I am doing completely wrong.

Volker

Other related posts: