
15 Jul
2004
15 Jul
'04
10:40 a.m.
Wolfgang!
The code works fine on all different memory configutations. This is because of the mirroring of the written values. For example
on a system
with 64MByte SDRAM a write to "ADDR_64MB" will mirror to one of the smaller addresses and the current test will fail! So this
is perfectly
OK.
If you have a 64MB system, I'd expect that a write to ADDR_64MB succeeds?
The memory controller is previously setup to 128MB. So a write to 64MB is OK, and _will_ be mirrored to a lower address on a 64MB system!
I agree that the code is pretty ugly and I am thinking about reworking it.
Best regards, Stefan Roese