mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
Replace zones with individually tracked physical pages.
It's just a simple struct { ref_count, paddr }. This will allow me to implement lazy zeroing and COW pages.
This commit is contained in:
parent
b5c5286ee1
commit
72cdc62155
10 changed files with 161 additions and 127 deletions
1
Userland/.gitignore
vendored
1
Userland/.gitignore
vendored
|
@ -17,3 +17,4 @@ mm
|
|||
kill
|
||||
tty
|
||||
ft
|
||||
ft2
|
||||
|
|
16
Userland/ft2.cpp
Normal file
16
Userland/ft2.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
printf("Testing fork()...\n");
|
||||
pid_t pid = fork();
|
||||
if (!pid) {
|
||||
printf("child, pid=%d\n", getpid());
|
||||
for (;;);
|
||||
} else {
|
||||
printf("parent, child pid=%d\n", pid);
|
||||
for (;;);
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue