mirror of
https://github.com/drasko/codezero.git
synced 2026-02-05 14:33:16 +01:00
Revised mmap, implemented find_unmapped_area properly.
find_unmapped_area() requires the vma list is an ordered list.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user