Added preliminary support for execve(). Updates to clone, fork, exit, task handling.

It turned out we used one version of kmalloc for malloc() and another for kfree()!
Now fixed.
Added parent-child relationship to tasks. Need to polish handling CLONE_PARENT and THREAD.
This commit is contained in:
Bahadir Balban
2008-11-19 12:59:52 +02:00
parent d182b5b35a
commit 46937eab88
39 changed files with 502 additions and 1192 deletions

18
tasks/mm0/include/exec.h Normal file
View File

@@ -0,0 +1,18 @@
/*
* Definitions for executables
*
* Copyright (C) 2008 Bahadir Balban
*/
#ifndef __EXEC_H__
#define __EXEC_H__
/*
* This presents extra executable file information that is
* not present in the tcb, in a generic format.
*/
struct exec_file_desc {
unsigned long text_offset; /* File offset of text section */
unsigned long data_offset; /* File offset of data section */
};
#endif /* __EXEC_H__ */