mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Add is_fcode(), is_forth() and is_aout() functions which take a pointer to an area of memory which may contain a valid loader
image. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@719 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
dc5c530885
commit
c60fad9646
@@ -17,8 +17,10 @@
|
||||
#ifndef _H_AOUTLOAD
|
||||
#define _H_AOUTLOAD
|
||||
|
||||
#include "arch/common/a.out.h"
|
||||
#include "libopenbios/sys_info.h"
|
||||
|
||||
extern int is_aout(struct exec *ehdr);
|
||||
extern int aout_load(struct sys_info *info, const char *filename);
|
||||
|
||||
#endif /* _H_AOUTLOAD */
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#ifndef _H_FCODELOAD
|
||||
#define _H_FCODELOAD
|
||||
|
||||
extern int is_fcode(unsigned char *fcode);
|
||||
extern int fcode_load(const char *filename);
|
||||
|
||||
#endif /* _H_FCODELOAD */
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#ifndef _H_FORTHLOAD
|
||||
#define _H_FORTHLOAD
|
||||
|
||||
extern int is_forth(char *forth);
|
||||
extern int forth_load(const char *filename);
|
||||
|
||||
#endif /* _H_FORTHLOAD */
|
||||
|
||||
Reference in New Issue
Block a user