Continuing the 'remove ELF' patch series.
These changes extend the larchive structure, and add a Kconfig EXPERT option to enable the 'no elf' mode. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@483 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
3d4b4784e5
commit
ac4a06d6dd
2 changed files with 32 additions and 2 deletions
|
|
@ -52,9 +52,10 @@
|
|||
|
||||
#include <types.h>
|
||||
|
||||
/* see note in lib/lar.c as to why this is ARCHIVE and not LARCHIVE */
|
||||
#define MAGIC "LARCHIVE"
|
||||
#define MAX_PATHLEN 1024
|
||||
|
||||
/* NOTE -- This and the user-mode lar.h are NOT IN SYNC. Be careful. */
|
||||
struct lar_header {
|
||||
char magic[8];
|
||||
u32 len;
|
||||
|
|
@ -62,7 +63,14 @@ struct lar_header {
|
|||
u32 checksum;
|
||||
u32 compchecksum;
|
||||
u32 offset;
|
||||
/* Compression:
|
||||
* 0 = no compression
|
||||
* 1 = lzma
|
||||
* 2 = nrv2b
|
||||
*/
|
||||
u32 compression;
|
||||
u32 entry; /* we might need to make this u64 */
|
||||
u32 loadaddress; /* ditto */
|
||||
};
|
||||
|
||||
struct mem_file {
|
||||
|
|
@ -70,6 +78,8 @@ struct mem_file {
|
|||
int len;
|
||||
u32 reallen;
|
||||
u32 compression;
|
||||
void *entry;
|
||||
void *loadaddress;
|
||||
};
|
||||
|
||||
/* Prototypes. */
|
||||
|
|
@ -77,5 +87,6 @@ int find_file(struct mem_file *archive, char *filename, struct mem_file *result)
|
|||
int copy_file(struct mem_file *archive, char *filename, void *where);
|
||||
int run_file(struct mem_file *archive, char *filename, void *where);
|
||||
int execute_in_place(struct mem_file *archive, char *filename);
|
||||
|
||||
int run_address(void *f);
|
||||
void *load_file(struct mem_file *archive, char *filename);
|
||||
#endif /* LAR_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue