Merge frame pinning to themis-synch #60

Merged
sb3923 merged 6 commits from vm/virtual-memory/frame-synch/saleh into vm/virtual-memory/themis-synch 2024-12-06 00:21:03 +00:00
6 changed files with 252 additions and 84 deletions
Showing only changes of commit 1efa1fef9a - Show all commits

View File

@@ -472,7 +472,7 @@ syscall_mmap (int fd, void *addr)
off_t read_bytes = file_size - ofs < PGSIZE ? file_size - ofs : PGSIZE; off_t read_bytes = file_size - ofs < PGSIZE ? file_size - ofs : PGSIZE;
off_t zero_bytes = PGSIZE - read_bytes; 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) PAGE_FILE) == NULL)
return MMAP_FAILURE; return MMAP_FAILURE;
} }