Author: rminnich Date: 2008-08-28 04:32:27 +0200 (Thu, 28 Aug 2008) New Revision: 835
Added: coreboot-v3/include/arch/x86/qemu.h Modified: coreboot-v3/include/globalvars.h Log: Fix for globals for qemu.
Signed-off-by: Ronald G. Minnich rminnich@gmail.com
Acked-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net
Added: coreboot-v3/include/arch/x86/qemu.h =================================================================== --- coreboot-v3/include/arch/x86/qemu.h (rev 0) +++ coreboot-v3/include/arch/x86/qemu.h 2008-08-28 02:32:27 UTC (rev 835) @@ -0,0 +1,40 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2008 Ronald G. Minnich rminnich@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_QEMU_H +#define CPU_QEMU_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-08-28 01:57:14 UTC (rev 834) +++ coreboot-v3/include/globalvars.h 2008-08-28 02:32:27 UTC (rev 835) @@ -31,6 +31,10 @@ #include <amd_geodelx.h> #endif
+#ifdef :CONFIG_BOARD_EMULATION_QEMU_X86 +#include <qemu.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