* clean up all but two warnings on artecgroup dbe61
[coreboot.git] / src / cpu / amd / model_lx / cache_as_ram.inc
index 096a96155dc604b20a9154e46cb5d39f947854ab..f776a7a727e8060e614054b6a3f35a527cf032a5 100644 (file)
@@ -34,6 +34,8 @@
 /**
 /***************************************************************************/
 DCacheSetup:
+       /* Save the BIST result */
+       movl    %eax, %ebx
 
        invd
        /* set cache properties */
@@ -173,9 +175,17 @@ DCacheSetupBad:
        hlt             /* issues */
        jmp DCacheSetupBad
 DCacheSetupGood:
-
        /* Go do early init and memory setup */
-       call    cache_as_ram_main
+
+       /* Restore the BIST result */
+       movl    %ebx, %eax
+       movl    %esp, %ebp
+       pushl   %eax
+
+       post_code(0x23)
+
+       /* Call romstage.c main function */
+       call    main
 done_cache_as_ram_main:
 
         /* We now run over the stack-in-cache, copying it back to itself to invalidate the cache */