mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Move the a.out loader from arch/*/aoutload.c into libopenbios as aout_load.c.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@711 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
1264ad95d2
commit
f02d2bde53
@@ -41,6 +41,8 @@ typedef unsigned long long ducell;
|
||||
#define FMT_ucellX "%08X"
|
||||
|
||||
#define FMT_elf "%#x"
|
||||
#define FMT_sizet "%lx"
|
||||
#define FMT_aout_ehdr "%lx"
|
||||
|
||||
#define bitspercell (sizeof(cell)<<3)
|
||||
#define bitsperdcell (sizeof(dcell)<<3)
|
||||
|
||||
@@ -37,8 +37,8 @@ typedef unsigned long long ucell;
|
||||
#define FMT_ucellx "%016llx"
|
||||
#define FMT_ucellX "%016llX"
|
||||
|
||||
#define FMT_sizet "%lx"
|
||||
#define FMT_elf "%#llx"
|
||||
#define FMT_sizet "%lx"
|
||||
#define FMT_aout_ehdr "%x"
|
||||
|
||||
#ifdef NEED_FAKE_INT128_T
|
||||
|
||||
24
include/libopenbios/aout_load.h
Normal file
24
include/libopenbios/aout_load.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Creation Date: <2010/03/22 18:00:00 mcayland>
|
||||
* Time-stamp: <2010/03/22 18:00:00 mcayland>
|
||||
*
|
||||
* <aout_load.h>
|
||||
*
|
||||
* a.out 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_AOUTLOAD
|
||||
#define _H_AOUTLOAD
|
||||
|
||||
#include "libopenbios/sys_info.h"
|
||||
|
||||
extern int aout_load(struct sys_info *info, const char *filename);
|
||||
|
||||
#endif /* _H_AOUTLOAD */
|
||||
Reference in New Issue
Block a user