Revised mmap, implemented find_unmapped_area properly.

find_unmapped_area() requires the vma list is an ordered list.
This commit is contained in:
Bahadir Balban
2008-03-07 00:30:30 +00:00
parent 783904574d
commit 98b5c217f5
3 changed files with 101 additions and 66 deletions

View File

@@ -226,7 +226,7 @@ int start_boot_task(struct vm_file *file, struct task_ids *ids)
/* Currently RO text and RW data are one region */
task->data_start = USER_AREA_START;
task->data_end = USER_AREA_START + file->length;
task->data_end = USER_AREA_START + page_align_up(file->length);
task->text_start = task->data_start;
task->text_end = task->data_end;