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:
Mark Cave-Ayland
2010-03-28 20:55:10 +00:00
committed by Mark Cave-Ayland
parent dc5c530885
commit c60fad9646
6 changed files with 33 additions and 11 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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 */