[coreboot] r1142 - in coreboot-v3/util/x86emu: . pcbios x86emu yabel yabel/compat

svn at coreboot.org svn at coreboot.org
Sun Mar 1 20:23:02 CET 2009


Author: stepan
Date: 2009-03-01 20:23:02 +0100 (Sun, 01 Mar 2009)
New Revision: 1142

Modified:
   coreboot-v3/util/x86emu/biosemu.c
   coreboot-v3/util/x86emu/pcbios/pcibios.c
   coreboot-v3/util/x86emu/vm86.c
   coreboot-v3/util/x86emu/vm86_gdt.c
   coreboot-v3/util/x86emu/x86emu/sys.c
   coreboot-v3/util/x86emu/yabel/biosemu.c
   coreboot-v3/util/x86emu/yabel/compat/functions.c
   coreboot-v3/util/x86emu/yabel/debug.c
   coreboot-v3/util/x86emu/yabel/debug.h
   coreboot-v3/util/x86emu/yabel/device.c
   coreboot-v3/util/x86emu/yabel/device.h
   coreboot-v3/util/x86emu/yabel/interrupt.c
   coreboot-v3/util/x86emu/yabel/io.c
   coreboot-v3/util/x86emu/yabel/mem.c
   coreboot-v3/util/x86emu/yabel/pmm.c
   coreboot-v3/util/x86emu/yabel/vbe.c
Log:
Trivial patch to make v3 compile too.
 
Signed-off-by: Ronald Hoogenboom <hoogenboom30 at zonnet.nl>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: coreboot-v3/util/x86emu/biosemu.c
===================================================================
--- coreboot-v3/util/x86emu/biosemu.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/biosemu.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -36,7 +36,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include <arch/io.h>
 #include <console/console.h>
 #else

Modified: coreboot-v3/util/x86emu/pcbios/pcibios.c
===================================================================
--- coreboot-v3/util/x86emu/pcbios/pcibios.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/pcbios/pcibios.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -35,7 +35,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include <console/console.h>
 #else
 #include <console.h>
@@ -65,7 +65,7 @@
 		break;
 	case FIND_PCI_DEVICE:
 		/* FixME: support SI != 0 */
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 		dev = dev_find_device(X86_DX, X86_CX, dev);
 #else
 		dev = dev_find_pci_device(X86_DX, X86_CX, dev);

Modified: coreboot-v3/util/x86emu/vm86.c
===================================================================
--- coreboot-v3/util/x86emu/vm86.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/vm86.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -26,7 +26,7 @@
 #include <device/pci_ids.h>
 #include <device/pci_ops.h>
 #include <string.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include <console/console.h>
 #include <arch/io.h>
 #define printk(lvl, x...) printk_debug(x)
@@ -591,7 +591,7 @@
 		vendorid = *pedx;
 		devindex = *pesi;
 		dev = 0;
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 		while ((dev = dev_find_device(vendorid, devid, dev))) {
 #else
 		while ((dev = dev_find_pci_device(vendorid, devid, dev))) {

Modified: coreboot-v3/util/x86emu/vm86_gdt.c
===================================================================
--- coreboot-v3/util/x86emu/vm86_gdt.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/vm86_gdt.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -33,7 +33,7 @@
 	"	.globl gdtarg\n"
 	"gdtarg:			\n"
 	"	.word	gdt_limit	\n"
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 	"	.long	gdt	       	\n"		
 #else
 	"	.long	gdtptr	       	\n"		
@@ -78,7 +78,7 @@
 
 	"__mygdt_end:				\n"
 
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 	/* FIXME: This does probably not belong here */
 	"	.globl idtarg\n"
 	"idtarg:\n"

Modified: coreboot-v3/util/x86emu/x86emu/sys.c
===================================================================
--- coreboot-v3/util/x86emu/x86emu/sys.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/x86emu/sys.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -46,7 +46,7 @@
 #include "debug.h"
 #include "prim_ops.h"
 #if 1 /* Coreboot needs to map prinkf to printk. */
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "arch/io.h"
 #else
 #include "io.h"

Modified: coreboot-v3/util/x86emu/yabel/biosemu.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/biosemu.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/biosemu.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -13,7 +13,7 @@
 #include <string.h>
 
 #include <types.h>
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 #include <cpu.h>
 #endif
 
@@ -21,7 +21,7 @@
 
 #include <x86emu/x86emu.h>
 #include <x86emu/regs.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "../x86emu/prim_ops.h"
 #else
 #include <x86emu/prim_ops.h>	// for push_word
@@ -34,7 +34,7 @@
 #include "device.h"
 #include "pmm.h"
 
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "compat/rtas.h"
 #else
 #include <rtas.h>

Modified: coreboot-v3/util/x86emu/yabel/compat/functions.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/compat/functions.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/compat/functions.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -14,7 +14,7 @@
  */
 
 #include <types.h>
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 #include <config.h>
 #endif
 #include <device/device.h>

Modified: coreboot-v3/util/x86emu/yabel/debug.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/debug.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/debug.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -10,7 +10,7 @@
  *     IBM Corporation - initial implementation
  *****************************************************************************/
 
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 #include <cpu.h>
 #endif
 

Modified: coreboot-v3/util/x86emu/yabel/debug.h
===================================================================
--- coreboot-v3/util/x86emu/yabel/debug.h	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/debug.h	2009-03-01 19:23:02 UTC (rev 1142)
@@ -19,7 +19,7 @@
 extern void x86emu_dump_xregs(void);
 
 /* printf is not available in coreboot... use printk */
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include <console/console.h>
 #else
 #include <console.h>

Modified: coreboot-v3/util/x86emu/yabel/device.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/device.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/device.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -12,7 +12,7 @@
 
 
 #include "device.h"
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "compat/rtas.h"
 #else
 #include "rtas.h"
@@ -396,7 +396,7 @@
 {
 	u8 rval = 0;
 	//init bios_device struct
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 	DEBUG_PRINTF("%s\n", __func__);
 #else
 	DEBUG_PRINTF("%s(%s)\n", __func__, device->dtsname);

Modified: coreboot-v3/util/x86emu/yabel/device.h
===================================================================
--- coreboot-v3/util/x86emu/yabel/device.h	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/device.h	2009-03-01 19:23:02 UTC (rev 1142)
@@ -14,7 +14,7 @@
 #define DEVICE_LIB_H
 
 #include <types.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include <arch/byteorder.h>
 #include "compat/of.h"
 #else

Modified: coreboot-v3/util/x86emu/yabel/interrupt.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/interrupt.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/interrupt.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -10,7 +10,7 @@
  *     IBM Corporation - initial implementation
  *****************************************************************************/
 
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "compat/rtas.h"
 #else
 #include <rtas.h>
@@ -23,7 +23,7 @@
 #include "pmm.h"
 
 #include <x86emu/x86emu.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "../x86emu/prim_ops.h"
 #else
 #include <x86emu/prim_ops.h>

Modified: coreboot-v3/util/x86emu/yabel/io.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/io.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/io.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -11,7 +11,7 @@
  *****************************************************************************/
 
 #include <types.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "compat/rtas.h"
 #include "compat/time.h"
 #else

Modified: coreboot-v3/util/x86emu/yabel/mem.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/mem.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/mem.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -11,14 +11,14 @@
  *****************************************************************************/
 
 #include <types.h>
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 #include <cpu.h>
 #endif
 #include "debug.h"
 #include "device.h"
 #include "x86emu/x86emu.h"
 #include "biosemu.h"
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "compat/time.h"
 #else
 #include <time.h>

Modified: coreboot-v3/util/x86emu/yabel/pmm.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/pmm.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/pmm.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -10,7 +10,7 @@
  ****************************************************************************/
 
 #include <x86emu/x86emu.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "../x86emu/prim_ops.h"
 #else
 #include <x86emu/prim_ops.h>

Modified: coreboot-v3/util/x86emu/yabel/vbe.c
===================================================================
--- coreboot-v3/util/x86emu/yabel/vbe.c	2009-03-01 10:08:06 UTC (rev 1141)
+++ coreboot-v3/util/x86emu/yabel/vbe.c	2009-03-01 19:23:02 UTC (rev 1142)
@@ -12,7 +12,7 @@
 
 #include <string.h>
 #include <types.h>
-#if !COREBOOT_V2
+#ifndef COREBOOT_V2
 #include <cpu.h>
 #endif
 
@@ -20,7 +20,7 @@
 
 #include <x86emu/x86emu.h>
 #include <x86emu/regs.h>
-#if COREBOOT_V2
+#ifdef COREBOOT_V2
 #include "../x86emu/prim_ops.h"
 #else
 #include <x86emu/prim_ops.h>	// for push_word





More information about the coreboot mailing list