summaryrefslogtreecommitdiffstats
path: root/qemu/roms/openbios/libopenbios/initprogram.c
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/roms/openbios/libopenbios/initprogram.c
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
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<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/roms/openbios/libopenbios/initprogram.c')
-rw-r--r--qemu/roms/openbios/libopenbios/initprogram.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/qemu/roms/openbios/libopenbios/initprogram.c b/qemu/roms/openbios/libopenbios/initprogram.c
deleted file mode 100644
index 1fa33ba66..000000000
--- a/qemu/roms/openbios/libopenbios/initprogram.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Creation Date: <2010/04/02 13:00:00 mcayland>
- * Time-stamp: <2010/04/02 13:00:00 mcayland>
- *
- * <initprogram.c>
- *
- * C implementation of (init-program) word
- *
- * Copyright (C) 2010 Mark Cave-Ayland (mark.cave-ayland@siriusit.co.uk)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * version 2
- *
- */
-
-#include "config.h"
-#include "kernel/kernel.h"
-#include "libopenbios/bindings.h"
-#include "libopenbios/initprogram.h"
-
-/* Because the a.out loader requires platform-specific headers */
-#ifdef CONFIG_LOADER_AOUT
-#include "libopenbios/aout_load.h"
-#endif
-
-#include "libopenbios/bootinfo_load.h"
-#include "libopenbios/elf_load.h"
-#include "libopenbios/fcode_load.h"
-#include "libopenbios/forth_load.h"
-#include "libopenbios/xcoff_load.h"
-
-
-void init_program(void)
-{
- /* Get the value of load-base and use it to determine the correct loader
- to use */
- ucell addr;
-
- feval("load-base");
- addr = POP();
-
-#ifdef CONFIG_LOADER_AOUT
- if (is_aout((struct exec *)cell2pointer(addr))) {
- aout_init_program();
- return;
- }
-#endif
-
-#ifdef CONFIG_LOADER_BOOTINFO
- if (is_bootinfo((char *)cell2pointer(addr))) {
- bootinfo_init_program();
- return;
- }
-#endif
-
-#ifdef CONFIG_LOADER_ELF
- if (is_elf((Elf_ehdr *)cell2pointer(addr))) {
- elf_init_program();
- return;
- }
-#endif
-
-#ifdef CONFIG_LOADER_FCODE
- if (is_fcode((unsigned char *)cell2pointer(addr))) {
- fcode_init_program();
- return;
- }
-#endif
-
-#ifdef CONFIG_LOADER_FORTH
- if (is_forth((char *)cell2pointer(addr))) {
- forth_init_program();
- return;
- }
-#endif
-
-#ifdef CONFIG_LOADER_XCOFF
- if (is_xcoff((COFF_filehdr_t *)cell2pointer(addr))) {
- xcoff_init_program();
- return;
- }
-#endif
-
-}