From bb756eebdac6fd24e8919e2c43f7d2c8c4091f59 Mon Sep 17 00:00:00 2001 From: RajithaY Date: Tue, 25 Apr 2017 03:31:15 -0700 Subject: Adding qemu as a submodule of KVMFORNFV This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY --- qemu/roms/openbios/arch/amd64/sys_info.c | 58 -------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 qemu/roms/openbios/arch/amd64/sys_info.c (limited to 'qemu/roms/openbios/arch/amd64/sys_info.c') diff --git a/qemu/roms/openbios/arch/amd64/sys_info.c b/qemu/roms/openbios/arch/amd64/sys_info.c deleted file mode 100644 index d62070be0..000000000 --- a/qemu/roms/openbios/arch/amd64/sys_info.c +++ /dev/null @@ -1,58 +0,0 @@ -#include "config.h" -#include "kernel/kernel.h" -#include "libopenbios/sys_info.h" -#include "context.h" - -#define printf printk -#ifdef CONFIG_DEBUG_BOOT -#define debug printk -#else -#define debug(x...) -#endif - -void collect_multiboot_info(struct sys_info *); -void collect_sys_info(struct sys_info *info); - -void collect_sys_info(struct sys_info *info) -{ - int i; - unsigned long long total = 0; - struct memrange *mmap; - - /* Pick up paramters given by bootloader to us */ - info->boot_type = boot_ctx->eax; - info->boot_data = boot_ctx->ebx; - info->boot_arg = boot_ctx->param[0]; - debug("boot eax = %#lx\n", info->boot_type); - debug("boot ebx = %#lx\n", info->boot_data); - debug("boot arg = %#lx\n", info->boot_arg); - - collect_elfboot_info(info); -#ifdef CONFIG_LINUXBIOS - collect_linuxbios_info(info); -#endif -#ifdef CONFIG_IMAGE_ELF_MULTIBOOT - collect_multiboot_info(info); -#endif - - if (!info->memrange) { - printf("Can't get memory map from firmware. " - "Using hardcoded default.\n"); - info->n_memranges = 2; - info->memrange = malloc(2 * sizeof(struct memrange)); - info->memrange[0].base = 0; - info->memrange[0].size = 640*1024; - info->memrange[1].base = 1024*1024; - info->memrange[1].size = 32*1024*1024 - - info->memrange[1].base; - } - - debug("\n"); - mmap=info->memrange; - for (i = 0; i < info->n_memranges; i++) { - debug("%016Lx-", mmap[i].base); - debug("%016Lx\n", mmap[i].base+mmap[i].size); - total += mmap[i].size; - } - debug("RAM %Ld MB\n", (total + 512*1024) >> 20); -} -- cgit 1.2.3-korg