]> git.sur5r.net Git - u-boot/commitdiff
POST: Execute SPR test after relocation
authorStefan Roese <sr@denx.de>
Wed, 9 Jan 2008 09:38:58 +0000 (10:38 +0100)
committerStefan Roese <sr@denx.de>
Wed, 9 Jan 2008 09:38:58 +0000 (10:38 +0100)
On LWMON5 we now use d-cache as init-ram and stack. The SPR POST test uses
self modifying code and this doesn't work with stack in d-cache, since
I can't move the code from d-cache to i-cache. We move the SPR test to
be executed a little later, after relocation. Then stack is located in
SDRAM and this self-modifying code is no problem anymore.

Signed-off-by: Stefan Roese <sr@denx.de>
post/tests.c

index e1c3d28f5bd5704f8434f39ebc12a3f3d11edb22..0c49e324471036e9d2d2ac6dc20c0b6c4eeafa2d 100644 (file)
@@ -194,7 +194,7 @@ struct post_test post_list[] =
        "SPR test",
        "spr",
        "This test checks SPR contents.",
-       POST_ROM | POST_ALWAYS | POST_PREREL,
+       POST_RAM | POST_ALWAYS,
        &spr_post_test,
        NULL,
        NULL,