OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Jun 18, 2019 2:44 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Just finished setting up basic paging, now what ?
PostPosted: Sat Jun 23, 2018 7:50 am 
Offline
Member
Member
User avatar

Joined: Fri Apr 08, 2016 5:03 am
Posts: 132
Location: atapio.cpp - why won't you work :(
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 ^^

_________________
My github page: https://github.com/AlexandreRouma
Meme-deving since 420 Bc !
YouTube: https://www.youtube.com/channel/UCyJnOD ... C8Y7pccc6A
Twitter: https://twitter.com/WhatsTheGeekYT


Top
 Profile  
 
 Post subject: Re: Just finished setting up basic paging, now what ?
PostPosted: Sat Jun 23, 2018 8:57 am 
Offline
User avatar

Joined: Sun Apr 05, 2015 3:15 pm
Posts: 20
Location: Belgium
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.

_________________
OSDev project: https://github.com/nielsdos/wask


Top
 Profile  
 
 Post subject: Re: Just finished setting up basic paging, now what ?
PostPosted: Sat Jun 23, 2018 10:34 am 
Offline
Member
Member
User avatar

Joined: Fri Apr 08, 2016 5:03 am
Posts: 132
Location: atapio.cpp - why won't you work :(
Oh ok, I see :)

Thanks for the answer !

_________________
My github page: https://github.com/AlexandreRouma
Meme-deving since 420 Bc !
YouTube: https://www.youtube.com/channel/UCyJnOD ... C8Y7pccc6A
Twitter: https://twitter.com/WhatsTheGeekYT


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group