Commit ba1a7af4 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b075ce7c
......@@ -370,17 +370,18 @@ void* virt_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t blklen) {
vma->mmap_overlay_server = mmap._ptr();
// XXX here? -> in fileh->mmap? don't set at all here?
vma->addr_start = mmap->mem_start;
vma->addr_stop = mmap->mem_stop;
vma->addr_start = (uintptr_t)mmap->mem_start;
vma->addr_stop = (uintptr_t)mmap->mem_stop;
return vma->addr_start;
return (void*)vma->addr_start; // XXX kill if we set vma->addr_*
}
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);
mmap->remmap_blk(blk); // XXX err
return 0;
}
......
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