Page 1 of 1

Just finished setting up basic paging, now what ?

Posted: Sat Jun 23, 2018 7:50 am
by DeezRamChips
So, I finally got around to adding paging to my OS, but now I'm not sure what to do :/

I kinda want to implement a memory manager but I don't know where to start and most importantly, I don't know whats
the best way to do it so I don't run into problems later.

I also wanted to implement multitasking, but isn't it more important to get a working memory management system first ?

Hope someone can point me in the right direction ^^

Re: Just finished setting up basic paging, now what ?

Posted: Sat Jun 23, 2018 8:57 am
by nielsd
When you implement multitasking, you want to store the state of the tasks.
You'd want to dynamically allocate the memory for the task structures, so I'd implement a memory manager first.
For dynamically allocating memory, you might want to see the wiki article about Heap.
There are multiple ways to implement a heap.
I'd recommend checking if your heap implementation works correctly after you implemented it, otherwise you might run into annoying issues.

Re: Just finished setting up basic paging, now what ?

Posted: Sat Jun 23, 2018 10:34 am
by DeezRamChips
Oh ok, I see :)

Thanks for the answer !