diff options
| author | manuel <manuel@mausz.at> | 2012-06-21 19:07:57 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-06-21 19:07:57 +0200 |
| commit | f442c3fbe203752f0a751317d3e833fe0b660ae1 (patch) | |
| tree | bf747f4914fd6e23327ce6cfacbef1d94f52f9be /vm/mmap.h | |
| parent | e61e868b265efe2f6d51079373588d639fc54d59 (diff) | |
| download | progos-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -18,14 +18,14 @@ struct mmap_table | |||
| 18 | /* a single entry in the mmap table */ | 18 | /* a single entry in the mmap table */ |
| 19 | struct mmap_table_entry | 19 | struct 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 | ||
| 26 | bool mmap_table_init (struct mmap_table *table); | 26 | bool mmap_table_init (struct mmap_table *table); |
| 27 | void mmap_table_free (struct mmap_table *table); | 27 | void mmap_table_free (struct mmap_table *table); |
| 28 | mapid_t mmap_table_insert (struct mmap_table *table, uint8_t *upage, | 28 | mapid_t mmap_table_insert (struct mmap_table *table, void *upage, |
| 29 | struct file *file, off_t len); | 29 | struct file *file, off_t len); |
| 30 | bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); | 30 | bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); |
| 31 | 31 | ||
