mirror of
https://github.com/drasko/codezero.git
synced 2026-02-10 17:03:26 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user