Delcare md_load in libofw.h. Make all prototypes match for ofw

provided md_load functions.

Sponsored by: Netflix
This commit is contained in:
imp 2017-12-03 04:54:49 +00:00
parent 25cf093696
commit 0ec13852b1
3 changed files with 5 additions and 2 deletions

View File

@ -67,6 +67,10 @@ struct file_format;
int ofw_elf_loadfile(char *, vm_offset_t, struct preloaded_file **);
int ofw_elf_exec(struct preloaded_file *);
/* MD code implementing MI interfaces */
vm_offset_t md_load(char *args, vm_offset_t *modulep, vm_offset_t *dtb);
vm_offset_t md_load64(char *args, vm_offset_t *modulep, vm_offset_t *dtb);
extern struct file_format ofw_elf;
#ifdef __powerpc__
extern struct file_format ofw_elf64;

View File

@ -101,7 +101,6 @@ static inline u_long itlb_get_data_sun4u(u_int, u_int);
static int itlb_enter_sun4u(u_int, u_long data, vm_offset_t);
static vm_offset_t itlb_va_to_pa_sun4u(vm_offset_t);
static void itlb_relocate_locked0_sun4u(void);
extern vm_offset_t md_load(char *, vm_offset_t *, vm_offset_t *);
static int sparc64_autoload(void);
static ssize_t sparc64_readin(const int, vm_offset_t, const size_t);
static ssize_t sparc64_copyin(const void *, vm_offset_t, size_t);

View File

@ -275,7 +275,7 @@ md_copymodules(vm_offset_t addr)
* - The kernel environment is copied into kernel space.
* - Module metadata are formatted and placed in kernel space.
*/
int
vm_offset_t
md_load(char *args, vm_offset_t *modulep, vm_offset_t *dtbp)
{
struct preloaded_file *kfp;