[coreboot] r918 - in coreboot-v3/include: . arch/x86

svn at coreboot.org svn at coreboot.org
Sun Oct 12 02:51:10 CEST 2008


Author: cozzie
Date: 2008-10-12 02:51:10 +0200 (Sun, 12 Oct 2008)
New Revision: 918

Added:
   coreboot-v3/include/arch/x86/via_c7.h
Modified:
   coreboot-v3/include/globalvars.h
Log:
Add the last bits to support C7 in v3

Signed-off-by: Corey Osgood <corey.osgood at gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>



Added: coreboot-v3/include/arch/x86/via_c7.h
===================================================================
--- coreboot-v3/include/arch/x86/via_c7.h	                        (rev 0)
+++ coreboot-v3/include/arch/x86/via_c7.h	2008-10-12 00:51:10 UTC (rev 918)
@@ -0,0 +1,40 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2008 Corey Osgood <corey.osgood at gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ */
+
+#ifndef CPU_VIA_C7_H
+#define CPU_VIA_C7_H
+
+
+#ifndef __ASSEMBLER__
+
+/* This is new. 
+ * We're not using it yet. 
+ * K8 requires it and, for future ports, we are going to require it. 
+ * it's a useful placeholder for platform info that usually ends up 
+ * scattered everywhere. On K8, it is stored near the base of stack
+ * in the global variable struct.
+ */
+struct sys_info {
+	int empty;
+};
+
+#endif
+
+#endif

Modified: coreboot-v3/include/globalvars.h
===================================================================
--- coreboot-v3/include/globalvars.h	2008-10-11 17:42:23 UTC (rev 917)
+++ coreboot-v3/include/globalvars.h	2008-10-12 00:51:10 UTC (rev 918)
@@ -35,6 +35,10 @@
 #include <qemu.h>
 #endif
 
+#ifdef CONFIG_CPU_VIA_C7
+#include <via_c7.h>
+#endif
+
 /*
  * struct global_vars is managed entirely from C code. Keep in mind that there
  * is NO buffer at the end of the struct, so having zero-sized arrays at the





More information about the coreboot mailing list