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

@@ -47,7 +47,7 @@ struct tcb {
/* Related task ids */
unsigned int pagerid; /* Task's pager */
/* Program segment marks, ends exclusive as usual */
/* Page aligned program segment marks, ends exclusive as usual */
unsigned long text_start;
unsigned long text_end;
unsigned long data_start;
@@ -63,6 +63,10 @@ struct tcb {
unsigned long args_start;
unsigned long args_end;
/* Task's mmappable region */
unsigned long map_start;
unsigned long map_end;
/* UTCB address */
unsigned long utcb_address;