1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

More paging stuff.

The test userspace process now runs at linear address 0x300000 which is
mapped to a dynamically allocated page from the MemoryManager. Cool!
This commit is contained in:
Andreas Kling 2018-10-18 13:05:00 +02:00
parent 89851a9ded
commit f67d695254
10 changed files with 339 additions and 66 deletions

View file

@ -68,7 +68,7 @@ static void user_main()
DO_SYSCALL_A3(0x3000, 2, 3, 4);
// Crash ourselves!
char* x = reinterpret_cast<char*>(0xbeefbabe);
//*x = 1;
*x = 1;
HANG;
for (;;) {
// nothing?
@ -158,7 +158,7 @@ void init()
//vfs->listDirectory("/");
#if 1
#if 0
{
auto motdFile = vfs->open("/motd.txt");
ASSERT(motdFile);