mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
Support basic mmap'ing of a file!
All right, we can now mmap() a file and it gets magically paged in from fs in response to an NP page fault. This is really cool :^) I need to refactor this to support sharing of read-only file-backed pages, but it's cool to just have something working.
This commit is contained in:
parent
fdbd9f1e27
commit
3c8064a787
8 changed files with 141 additions and 14 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "types.h"
|
||||
|
||||
#define PAGE_SIZE 4096u
|
||||
#define PAGE_MASK 0xfffff000
|
||||
|
||||
union Descriptor {
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue