From 1efa1fef9a181414f56b4837af03d8b46f1a71b1 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Thu, 5 Dec 2024 23:56:25 +0000 Subject: [PATCH] Merge frame pinning into themis-synch --- src/userprog/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index c55c090..b1a43dd 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -472,7 +472,7 @@ syscall_mmap (int fd, void *addr) off_t read_bytes = file_size - ofs < PGSIZE ? file_size - ofs : PGSIZE; off_t zero_bytes = PGSIZE - read_bytes; - if (page_insert (file, ofs, addr + ofs, read_bytes, zero_bytes, true, + if (page_insert_file (file, ofs, addr + ofs, read_bytes, zero_bytes, true, PAGE_FILE) == NULL) return MMAP_FAILURE; }