mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Move the *_init_program() functions into the main loader source files so that everything is in one place. Part of this
involves taking the existing parts of the XCOFF loader and putting them into a new loader file xcoff_load.c. Also fix a dependency order change these changes introduce when building openbios-unix. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@720 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
c60fad9646
commit
d4451ae216
@@ -22,5 +22,6 @@
|
||||
|
||||
extern int is_aout(struct exec *ehdr);
|
||||
extern int aout_load(struct sys_info *info, const char *filename);
|
||||
extern void aout_init_program(void);
|
||||
|
||||
#endif /* _H_AOUTLOAD */
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "libopenbios/sys_info.h"
|
||||
|
||||
extern int elf_load(struct sys_info *info, const char *filename, const char *cmdline, void **boot_notes);
|
||||
extern void elf_init_program(void);
|
||||
extern int is_elf(Elf_ehdr *ehdr);
|
||||
extern int find_elf(Elf_ehdr *ehdr);
|
||||
|
||||
|
||||
@@ -19,5 +19,6 @@
|
||||
|
||||
extern int is_fcode(unsigned char *fcode);
|
||||
extern int fcode_load(const char *filename);
|
||||
extern void fcode_init_program(void);
|
||||
|
||||
#endif /* _H_FCODELOAD */
|
||||
|
||||
@@ -19,5 +19,6 @@
|
||||
|
||||
extern int is_forth(char *forth);
|
||||
extern int forth_load(const char *filename);
|
||||
extern void forth_init_program(void);
|
||||
|
||||
#endif /* _H_FORTHLOAD */
|
||||
|
||||
27
include/libopenbios/xcoff_load.h
Normal file
27
include/libopenbios/xcoff_load.h
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Creation Date: <2010/03/22 18:00:00 mcayland>
|
||||
* Time-stamp: <2010/03/22 18:00:00 mcayland>
|
||||
*
|
||||
* <xcoff_load.h>
|
||||
*
|
||||
* XCOFF loader
|
||||
*
|
||||
* 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
|
||||
* as published by the Free Software Foundation
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _H_XCOFFLOAD
|
||||
#define _H_XCOFFLOAD
|
||||
|
||||
#include "arch/common/xcoff.h"
|
||||
#include "libopenbios/sys_info.h"
|
||||
|
||||
extern int is_xcoff(COFF_filehdr_t *fhdr);
|
||||
extern int xcoff_load(struct sys_info *info, const char *filename);
|
||||
extern void xcoff_init_program(void);
|
||||
|
||||
#endif /* _H_XCOFFLOAD */
|
||||
Reference in New Issue
Block a user