mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Concentrate memory and MMU management (lib.c malloc, OF /memory) to lib.c. git-svn-id: svn://coreboot.org/openbios/openbios-devel@346 f158a5a8-5612-0410-a976-696ce0be7e32
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/* tag: openbios loader prototypes for sparc64
|
|
*
|
|
* Copyright (C) 2004 Stefan Reinauer
|
|
*
|
|
* See the file "COPYING" for further information about
|
|
* the copyright and warranty status of this work.
|
|
*/
|
|
|
|
// forthload.c
|
|
int forth_load(const char *filename);
|
|
|
|
// elfload.c
|
|
int elf_load(struct sys_info *info, const char *filename, const char *cmdline);
|
|
|
|
// aout_load.c
|
|
int aout_load(struct sys_info *info, const char *filename);
|
|
|
|
// linux_load.c
|
|
int linux_load(struct sys_info *info, const char *file, const char *cmdline);
|
|
|
|
// fcodeload.c
|
|
int fcode_load(const char *filename);
|
|
|
|
// context.c
|
|
extern struct context *__context;
|
|
uint64_t start_elf(uint64_t entry_point, uint64_t param);
|
|
|
|
// boot.c
|
|
extern struct sys_info sys_info;
|
|
extern uint64_t kernel_image;
|
|
extern uint64_t kernel_size;
|
|
extern uint64_t qemu_cmdline;
|
|
extern uint64_t cmdline_size;
|
|
extern char boot_device;
|
|
void boot(void);
|
|
|
|
// sys_info.c
|
|
extern unsigned int qemu_mem_size;
|
|
|
|
// console.c
|
|
void ob_su_init(uint64_t base, uint64_t offset, int intr);
|
|
|
|
// lib.c
|
|
void ob_mmu_init(const char *cpuname, uint64_t ram_size);
|