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/page.c | |
| 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/page.c')
| -rw-r--r-- | vm/page.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -69,7 +69,7 @@ page_table_insert (struct hash *ht, struct page_table_entry *pte) | |||
| 69 | returns false if entry is invalid or already in the table */ | 69 | returns false if entry is invalid or already in the table */ |
| 70 | bool | 70 | bool |
| 71 | page_table_insert_segment (struct hash *ht, struct file *file, off_t ofs, | 71 | page_table_insert_segment (struct hash *ht, struct file *file, off_t ofs, |
| 72 | uint8_t *upage, uint32_t read_bytes, bool writable) | 72 | void *upage, uint32_t read_bytes, bool writable) |
| 73 | { | 73 | { |
| 74 | struct page_table_entry *pte = malloc (sizeof *pte); | 74 | struct page_table_entry *pte = malloc (sizeof *pte); |
| 75 | if (pte == NULL) | 75 | if (pte == NULL) |
