And this one too
This commit is contained in:
parent
c4c6011427
commit
9bb7f65de1
@ -171,7 +171,7 @@ void my_copy(Memory* mem, void* src, void* dst, int size, int pid) {
|
||||
PageInfo* page_src = page_lookup(vmap->mmap, page_map_src->key);
|
||||
PageInfo* page_dst = page_lookup(vmap->mmap, page_map_dst->key);
|
||||
|
||||
memcpy(page_dst->data+((int64_t)src % PAGE_SIZE), page_src->data+((int64_t)dst % PAGE_SIZE), size);
|
||||
memcpy(page_src->data+((int64_t)dst % PAGE_SIZE), page_dst->data+((int64_t)src % PAGE_SIZE), size);
|
||||
}
|
||||
|
||||
void vmap_copy_to_memory(Memory* mem, void *src, void *dst, int size, int pid) {
|
||||
|
Loading…
Reference in New Issue
Block a user