summaryrefslogtreecommitdiffstats
path: root/vm/mmap.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-06-21 19:07:57 +0200
committermanuel <manuel@mausz.at>2012-06-21 19:07:57 +0200
commitf442c3fbe203752f0a751317d3e833fe0b660ae1 (patch)
treebf747f4914fd6e23327ce6cfacbef1d94f52f9be /vm/mmap.h
parente61e868b265efe2f6d51079373588d639fc54d59 (diff)
downloadprogos-f442c3fbe203752f0a751317d3e833fe0b660ae1.tar.gz
progos-f442c3fbe203752f0a751317d3e833fe0b660ae1.tar.bz2
progos-f442c3fbe203752f0a751317d3e833fe0b660ae1.zip
use void* instead of uint8_t* in mmap/page table and fill in more of proj2
Diffstat (limited to 'vm/mmap.h')
-rw-r--r--vm/mmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/mmap.h b/vm/mmap.h
index 09276a7..159e61a 100644
--- a/vm/mmap.h
+++ b/vm/mmap.h
@@ -18,14 +18,14 @@ struct mmap_table
18/* a single entry in the mmap table */ 18/* a single entry in the mmap table */
19struct mmap_table_entry 19struct mmap_table_entry
20{ 20{
21 uint8_t *upage; /* virtual address of first page of mmapped file */ 21 void *upage; /* virtual address of first page of mmapped file */
22 struct file *file; /* file handle */ 22 struct file *file; /* file handle */
23 int pages; /* number of pages the mapping needs */ 23 int pages; /* number of pages the mapping needs */
24}; 24};
25 25
26bool mmap_table_init (struct mmap_table *table); 26bool mmap_table_init (struct mmap_table *table);
27void mmap_table_free (struct mmap_table *table); 27void mmap_table_free (struct mmap_table *table);
28mapid_t mmap_table_insert (struct mmap_table *table, uint8_t *upage, 28mapid_t mmap_table_insert (struct mmap_table *table, void *upage,
29 struct file *file, off_t len); 29 struct file *file, off_t len);
30bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); 30bool mmap_table_remove (struct mmap_table *table, mapid_t mapping);
31 31