]> git.corax.cc Git - corax/commit
Make several amendments to the paging code to facilitate process memory management:
authorMatthias Kruk <m@m10k.eu>
Mon, 18 Nov 2019 08:25:01 +0000 (17:25 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 18 Nov 2019 08:25:01 +0000 (17:25 +0900)
commit76bec0b506388f0bb9d80ab68b833d0a214313c3
treeabe8c69c3cd5bf3d26c09c1b07698f4bbfde03a7
parent12056327bc09c49769ac987f76b9d7f08b969d8a
Make several amendments to the paging code to facilitate process memory management:
 - Move definition of struct region to kernel-wide arch.h header
 - Make page directories refer to their regions through a pointer array rather than a linked list
 - Add pg_dir_foreach_region() function for iterating over the mappings in a page directory
 - Add pg_dir_map_region() function for mapping a region from one page directory into another
 - Add a reference counter to each region
 - Add flags to regions so they can be marked as private, shared, or kernel-related
kernel/arch/paging.c
kernel/arch/paging.h
kernel/include/arch.h