Bahadir Balban
d14f91c668
Cleaned up pager initialization code.
2009-08-19 17:07:08 +03:00
Bahadir Balban
9c03d57d63
Carried over pager's virtual address alloc range to its own address space area.
2009-08-19 15:18:10 +03:00
Bahadir Balban
95b7b65c89
Pager virtual address pool bookkeeping added for all pager virtual addresses
...
Previously virt_to_phys/phys_to_virt macros were used such that they did a
blind offset translation for creating a pager internal virtual address for
user mappings.
This is now changed such that a properly bookkeeped virtual address pool is
used which will avoid any clashes on the virtual space.
2009-08-19 14:44:36 +03:00
Bahadir Balban
02a3f1ac91
Pager works until end of init_physmem_secondary
2009-08-09 17:22:13 +03:00
Bahadir Balban
276b4643c6
Removed linux linked list dependency.
2009-06-02 13:19:17 +03:00
Bahadir Balban
da3b293ab4
Fixed a byte/pfn confusion.
...
- During execve/map_stack when setting up the environment and argument stack,
the stack map size was in bytes instead of pfns.
- Can now execve 16 forked tasks with success.
2009-05-14 10:57:31 +03:00
Bahadir Balban
a9e6aabcae
We can now successfully copy char *argv[] user array.
...
After a lot of magic pointer arithmetic and mapping.
2008-11-25 11:05:41 +02:00
Bahadir Balban
311d6917c4
Fixed a few errors with pager-mapping of elf file pages.
...
Added expansion of elf segments during segment marking.
2008-11-22 13:23:39 +02:00
Bahadir Balban
906c8ac679
Added pager_map_file_page() which maps a file offset as a pointer.
2008-11-21 23:27:43 +02:00
Bahadir Balban
7d38243dff
Moved all pager page-mapping routines to memory.c
...
Added a new virtual address pool for contiguous virtual addresses for the pager.
This will help in mapping multi-page user buffers and files.
2008-11-21 21:05:42 +02:00
Bahadir Balban
d718b8efd5
Got mm0 to compile. A lot of issues expected.
2008-03-12 22:58:26 +00:00
Bahadir Balban
e2b791a3d8
Initial commit
2008-01-13 13:53:52 +00:00