And this one too

This commit is contained in:
augustin64 2024-04-19 09:08:50 +02:00
parent c4c6011427
commit 9bb7f65de1

View File

@ -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_src = page_lookup(vmap->mmap, page_map_src->key);
PageInfo* page_dst = page_lookup(vmap->mmap, page_map_dst->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) { void vmap_copy_to_memory(Memory* mem, void *src, void *dst, int size, int pid) {