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.
This commit is contained in:
Bahadir Balban
2008-11-21 21:05:42 +02:00
parent 2d5a08ff32
commit 7d38243dff
6 changed files with 113 additions and 23 deletions

View File

@@ -19,6 +19,8 @@ int file_open(struct tcb *opener, int fd);
struct vm_file *do_open2(struct tcb *task, int fd, unsigned long vnum, unsigned long length);
int flush_file_pages(struct vm_file *f);
int read_file_pages(struct vm_file *vmfile, unsigned long pfn_start,
unsigned long pfn_end);
struct vfs_file_data {
unsigned long vnum;