summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2009-03-01 10:16:01 +0000
committerStefan Reinauer <stepan@openbios.org>2009-03-01 10:16:01 +0000
commit36c83404a356b5dc379dbd46e25514e487f01ec8 (patch)
treef2c9a9637dd0142ec72afd2d6f6f81a2eff877fb /src/arch
parent2b34db8d1de2d63ffa829fe03db0ce2aaba40233 (diff)
downloadcoreboot-36c83404a356b5dc379dbd46e25514e487f01ec8.tar.xz
Some changes required to get yabel working on v2 (and they generally make
sense, too). Have one u64 instead of three. In order to use the old bios emulator, you have to do nothing. (Default, if CONFIG_PCI_ROM_RUN is enabled) In order to use yabel in your target, you need to add the following lines to your config: uses CONFIG_PCI_OPTION_ROM_RUN_YABEL default CONFIG_PCI_OPTION_ROM_RUN_YABEL=1 In order to use vm86 in your target, you need to add the following lines to your config: uses CONFIG_PCI_OPTION_ROM_RUN_VM86 default CONFIG_PCI_OPTION_ROM_RUN_VM86=1 Note: vm86 only works on platforms with _RAMBASE in the lower megabyte. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Joseph Smith <joe@settoplinux.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3965 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/boot/multiboot.c2
-rw-r--r--src/arch/i386/include/arch/acpi.h1
-rw-r--r--src/arch/i386/include/stdint.h6
3 files changed, 4 insertions, 5 deletions
diff --git a/src/arch/i386/boot/multiboot.c b/src/arch/i386/boot/multiboot.c
index af9b625877..31e9e4aa4f 100644
--- a/src/arch/i386/boot/multiboot.c
+++ b/src/arch/i386/boot/multiboot.c
@@ -23,8 +23,6 @@
#include <device/resource.h>
#include <console/console.h>
-typedef unsigned long long u64;
-
static struct multiboot_mmap_entry *mb_mem;
struct multiboot_info *mbi;
diff --git a/src/arch/i386/include/arch/acpi.h b/src/arch/i386/include/arch/acpi.h
index beb1d5f5b5..d31517e518 100644
--- a/src/arch/i386/include/arch/acpi.h
+++ b/src/arch/i386/include/arch/acpi.h
@@ -18,7 +18,6 @@
#if HAVE_ACPI_TABLES==1
#include <stdint.h>
-typedef unsigned long long u64;
#define RSDP_SIG "RSD PTR " /* RSDT Pointer signature */
#define RSDP_NAME "RSDP"
diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h
index d117fc4640..7f6b94037f 100644
--- a/src/arch/i386/include/stdint.h
+++ b/src/arch/i386/include/stdint.h
@@ -65,11 +65,13 @@ typedef long int intmax_t;
typedef unsigned long int uintmax_t;
#endif
-#undef __HAVE_LONG_LONG__
-
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
+#if __HAVE_LONG_LONG__
+typedef uint64_t u64;
+#endif
+#undef __HAVE_LONG_LONG__
#endif /* I386_STDINT_H */