From f442c3fbe203752f0a751317d3e833fe0b660ae1 Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 21 Jun 2012 19:07:57 +0200 Subject: use void* instead of uint8_t* in mmap/page table and fill in more of proj2 --- vm/mmap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vm/mmap.h') 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 /* a single entry in the mmap table */ struct mmap_table_entry { - uint8_t *upage; /* virtual address of first page of mmapped file */ + void *upage; /* virtual address of first page of mmapped file */ struct file *file; /* file handle */ int pages; /* number of pages the mapping needs */ }; bool mmap_table_init (struct mmap_table *table); void mmap_table_free (struct mmap_table *table); -mapid_t mmap_table_insert (struct mmap_table *table, uint8_t *upage, +mapid_t mmap_table_insert (struct mmap_table *table, void *upage, struct file *file, off_t len); bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); -- cgit v1.2.3