Mon 14 Oct 23:06:38 CEST 2024
This commit is contained in:
parent
5ff7709d81
commit
3cfa9290c1
23
kernel/elf.h
Normal file
23
kernel/elf.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
Copyright (C) 2015-2019 The University of Notre Dame
|
||||
This software is distributed under the GNU General Public License.
|
||||
See the file LICENSE for details.
|
||||
*/
|
||||
|
||||
#ifndef ELF_H
|
||||
#define ELF_H
|
||||
|
||||
#include "kernel/types.h"
|
||||
#include "process.h"
|
||||
#include "fs.h"
|
||||
|
||||
/*
|
||||
elf_load opens the given filename, and if it contains a valid
|
||||
ELF executable, allocates space in the current process' pagetable,
|
||||
loads the text, data, and bss into memory, and updates the
|
||||
entry point value in the current process structure.
|
||||
*/
|
||||
|
||||
int elf_load(struct process *p, struct fs_dirent *d, addr_t * entry);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user