Commit 607545f2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 864078d1
......@@ -369,7 +369,14 @@ void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
panic("TODO");
}
// XXX virt_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk)
int virt_remmap_blk_read(VMA *vma, BigFile *file, blk_t blk) {
_Mapping *mmap = static_cast<_Mapping*>(vma->mmap_overlay_server);
// XXX use file?
mmap->remmap_blk(blk);
}
void virt_munmap(VMA *vma, BigFile *file) {
Mapping mmap = adoptref(static_cast<_Mapping*>(vma->mmap_overlay_server)); // NOTE taking 1 ref back
vma->mmap_overlay_server = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment