From 9bb7f65de17d1f2951e6a77d99a7c2d4a85437d9 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Fri, 19 Apr 2024 09:08:50 +0200 Subject: [PATCH] And this one too --- TP/TP2/rendu/vmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TP/TP2/rendu/vmap.c b/TP/TP2/rendu/vmap.c index d246524..88b42bf 100644 --- a/TP/TP2/rendu/vmap.c +++ b/TP/TP2/rendu/vmap.c @@ -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) {