stand: move efi's bi_load into loader_efi.h
For kboot, we still have to declare it manually since we don't always include loader_efi.h Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1446
This commit is contained in:
committed by
Warner Losh
parent
9e239e67c4
commit
66b9db032b
@@ -42,9 +42,6 @@
|
||||
|
||||
#include "loader_efi.h"
|
||||
|
||||
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
static int elf64_exec(struct preloaded_file *amp);
|
||||
static int elf64_obj_exec(struct preloaded_file *amp);
|
||||
|
||||
|
||||
@@ -57,8 +57,6 @@ extern int elf32_loadfile_raw(char *filename, uint64_t dest,
|
||||
extern int elf64_load_modmetadata(struct preloaded_file *fp, uint64_t dest);
|
||||
extern int elf64_obj_loadfile(char *filename, uint64_t dest,
|
||||
struct preloaded_file **result);
|
||||
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
extern void multiboot2_exec(void *entry, uint64_t multiboot_info,
|
||||
uint64_t stack);
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
#include "bootstrap.h"
|
||||
#include "loader_efi.h"
|
||||
|
||||
extern int bi_load(char *, vm_offset_t *, vm_offset_t *, bool);
|
||||
|
||||
static int
|
||||
__elfN(arm_load)(char *filename, uint64_t dest,
|
||||
struct preloaded_file **result)
|
||||
|
||||
@@ -42,9 +42,6 @@
|
||||
static int elf64_exec(struct preloaded_file *amp);
|
||||
static int elf64_obj_exec(struct preloaded_file *amp);
|
||||
|
||||
int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
static struct file_format arm64_elf = {
|
||||
elf64_loadfile,
|
||||
elf64_exec
|
||||
|
||||
@@ -37,9 +37,6 @@
|
||||
|
||||
#include "loader_efi.h"
|
||||
|
||||
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
static int elf64_exec(struct preloaded_file *amp);
|
||||
static int elf64_obj_exec(struct preloaded_file *amp);
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
#include "bootstrap.h"
|
||||
#include "loader_efi.h"
|
||||
|
||||
extern int bi_load(char *, vm_offset_t *, vm_offset_t *, bool);
|
||||
|
||||
static int
|
||||
__elfN(exec)(struct preloaded_file *fp)
|
||||
{
|
||||
|
||||
@@ -64,9 +64,6 @@
|
||||
#include "geliboot.h"
|
||||
#endif
|
||||
|
||||
int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
static int
|
||||
bi_getboothowto(char *kargs)
|
||||
{
|
||||
|
||||
@@ -55,4 +55,7 @@ void * efi_translate(vm_offset_t ptr);
|
||||
void efi_copy_finish(void);
|
||||
void efi_copy_finish_nop(void);
|
||||
|
||||
int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
#endif /* _LOADER_EFI_COPY_H_ */
|
||||
|
||||
@@ -70,8 +70,11 @@ extern uint32_t efi_map_size;
|
||||
extern vm_paddr_t efi_map_phys_src; /* From DTB */
|
||||
extern vm_paddr_t efi_map_phys_dst; /* From our memory map metadata module */
|
||||
|
||||
/* Usually provided by loader_efi.h */
|
||||
#ifndef EFI
|
||||
int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
#endif
|
||||
|
||||
static struct file_format arm64_elf = {
|
||||
elf64_loadfile,
|
||||
|
||||
@@ -56,6 +56,10 @@
|
||||
|
||||
static EFI_GUID acpi_guid = ACPI_TABLE_GUID;
|
||||
static EFI_GUID acpi20_guid = ACPI_20_TABLE_GUID;
|
||||
#else
|
||||
/* Usually provided by loader_efi.h */
|
||||
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
#endif
|
||||
|
||||
#ifdef EFI
|
||||
@@ -64,9 +68,6 @@ static EFI_GUID acpi20_guid = ACPI_20_TABLE_GUID;
|
||||
#define LOADER_PAGE_SIZE PAGE_SIZE
|
||||
#endif
|
||||
|
||||
extern int bi_load(char *args, vm_offset_t *modulep, vm_offset_t *kernendp,
|
||||
bool exit_bs);
|
||||
|
||||
static int elf64_exec(struct preloaded_file *amp);
|
||||
static int elf64_obj_exec(struct preloaded_file *amp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user