ELF: don't change the cpu context

This commit is contained in:
Matheus
2022-09-04 14:42:59 -03:00
parent 5127ce9217
commit 2f8c8fc8e3
2 changed files with 8 additions and 6 deletions
+2 -3
View File
@@ -84,10 +84,9 @@ typedef struct{
uint64_t alignment;
} elf_ph64;
// loads an elf executable from file, setting target thread with appropriate
// values for it
// loads an elf executable from file
// also sets up the stack for said executable
int elf_load(thread_t* thread, vnode_t* node, char** argv, char** env);
int elf_load(thread_t* thread, vnode_t* node, char** argv, char** env, void** entry, void** stack);
#endif