Fixed various faults with execve().

Added a new ordered task_insert_vma() function
This commit is contained in:
Bahadir Balban
2008-12-02 14:15:40 +02:00
parent 05d8438f34
commit 32b3dfe91d
7 changed files with 68 additions and 7 deletions

View File

@@ -248,10 +248,7 @@ int validate_task_range(struct tcb *t, unsigned long start,
/* Changes all shadows and their ptes to read-only */
int vm_freeze_shadows(struct tcb *task);
static inline void task_add_vma(struct tcb *task, struct vm_area *vma)
{
list_add(&vma->list, &task->vm_area_head->list);
}
int task_insert_vma(struct vm_area *vma, struct list_head *vma_list);
/* Main page fault entry point */
int page_fault_handler(struct tcb *faulty_task, fault_kdata_t *fkdata);