On Fri, Aug 01, 2008 at 09:07:26AM -0700, ron minnich wrote:
> This almost builds.

I need the attached patch (sans the trivial cleanup hunk) in order to
build up to missing statictree.


> dts is not built, any idea why?

On it.


//Peter
v3: Clean up a Kconfig value and fixup K8 CAR defines to get CONFIG_ values

Signed-off-by: Peter Stuge <[EMAIL PROTECTED]>

Index: arch/x86/Kconfig
===================================================================
--- arch/x86/Kconfig	(revision 702)
+++ arch/x86/Kconfig	(working copy)
@@ -90,6 +90,6 @@
 	hex
 	default 0x1000 if CPU_I586
 	default 0x8000 if CPU_AMD_GEODELX
-	default 0x08000 if CPU_AMD_K8
+	default 0x8000 if CPU_AMD_K8
 	help
 	  This option sets the size of the area used for CAR.
Index: arch/x86/amd/stage0.S
===================================================================
--- arch/x86/amd/stage0.S	(revision 702)
+++ arch/x86/amd/stage0.S	(working copy)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 #include "../macros.h"
-#define CacheSize DCACHE_RAM_SIZE
-#define CacheBase DCACHE_RAM_BASE
+#define CacheSize CONFIG_CARSIZE
+#define CacheBase CONFIG_CARBASE
 #define MEM_TOPK 2048
 #define ASSEMBLY
 
Index: arch/x86/amdk8/stage1.c
===================================================================
--- arch/x86/amdk8/stage1.c	(revision 702)
+++ arch/x86/amdk8/stage1.c	(working copy)
@@ -35,7 +35,7 @@
 	 * the data back over itself, and the wbinvd should then 
 	 * flush to memory. Let's see. 
 	 */
-	__asm__ __volatile__("cld; rep movsl" ::"D" (DCACHE_RAM_BASE), "S" (DCACHE_RAM_BASE), "c" (DCACHE_RAM_SIZE/4): "memory");
+	__asm__ __volatile__("cld; rep movsl" ::"D" (CONFIG_CARBASE), "S" (CONFIG_CARBASE), "c" (CONFIG_CARSIZE/4): "memory");
 	__asm__ __volatile__ ("wbinvd\n");
 	banner(BIOS_DEBUG, "Disable_car: done wbinvd");
 	banner(BIOS_DEBUG, "disable_car: done");
--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to