asleepymoon
119 contributions in the last 12 months
JunJulAugSepOctNovDecJanFebMarAprMayJunMonWedFri
Less
More
asleepymoon commented on pull request asleepymoon/Luna#13 2022-10-16 12:48:02 +00:00
WIP: Add fork()

I don't understand.

Now address spaces are cloned, and copied, which means they have the same addresses but modifying memory in one doesn't get reflected in the other.

And yet, with an…

asleepymoon pushed to main at asleepymoon/Luna 2022-10-16 12:45:33 +00:00
f8154ce230 Kernel: Implement mkdir() from a single path
asleepymoon pushed to main at asleepymoon/Luna 2022-10-16 12:36:33 +00:00
8c0a57f0c2 Kernel: Copy strrchr, dirname and basename over from libc
asleepymoon pushed to fork at asleepymoon/Luna 2022-10-16 12:31:24 +00:00
08eb18307b The kernel page directory is already there
asleepymoon pushed to fork at asleepymoon/Luna 2022-10-16 07:58:22 +00:00
9070d17477 wait before letting the fork run for now
asleepymoon pushed to fork at asleepymoon/Luna 2022-10-15 18:31:07 +00:00
145ea40945 fork() is almost working
16f797eeee AddressSpace: make clone() perform a deep copy
Compare 2 commits »
asleepymoon pushed to fork at asleepymoon/Luna 2022-10-15 16:59:14 +00:00
397b1a2819 Kernel: add memmem
asleepymoon commented on pull request asleepymoon/Luna#13 2022-10-15 16:45:44 +00:00
WIP: Add fork()

There is a problem here:

The child starts doing stuff with the parent's stack, since all addresses copied from the parent are directly what the parent set.

But if we map both stacks at the…

asleepymoon pushed to fork at asleepymoon/Luna 2022-10-15 16:43:05 +00:00
7ab80014e1 More fork() work
e672f3994b libc: Add support for fork()
Compare 2 commits »
asleepymoon created pull request asleepymoon/Luna#13 2022-10-15 16:03:11 +00:00
WIP: Add fork()
asleepymoon pushed to fork at asleepymoon/Luna 2022-10-15 16:01:42 +00:00
20cffdb66c Add an initial fork() implementation
asleepymoon created branch fork in asleepymoon/Luna 2022-10-15 16:01:42 +00:00
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:48:05 +00:00
1624f0360d exec: More logging
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:46:01 +00:00
d30010d524 apps/sym: Read from the end of the file
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:40:40 +00:00
68403dc029 Kernel: Make AddressSpaces reference-counted
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:32:04 +00:00
eca7227fda StackTracer: Stop when instruction is at nullptr
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:30:43 +00:00
aca1367158 Kernel: Switch to strlcpy() as well
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 15:24:34 +00:00
42b6b927c9 libc: Implement strlcpy(), and make strncpy() standard-compliant
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 14:53:34 +00:00
48f38bdcef libc: More inttypes.h
asleepymoon pushed to main at asleepymoon/Luna 2022-10-15 14:47:03 +00:00
45afd3e243 Replace the rand() which reads from /dev/random with a Mersenne PRNG.