OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:44 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Paging wizard needed
PostPosted: Thu Aug 20, 2015 7:09 am 
Offline
Member
Member
User avatar

Joined: Sun Dec 28, 2014 11:16 am
Posts: 27
Location: Estonia
Hi,

As my brain has come to a halt regarding this, I'm hereby offering a non-paid chance to work on OS Zin. What I ask you to implement, is paging code, to the point where libmalloc or similar things can be ported over. What I have to provide you is a reasonably good linked-list implementation of a Physical Memory Manager: https://github.com/makerimages/OSZin/bl ... /mem/pmm.c

Interested? Want to help? Just fork the repo and get craking! Let me know on the repo issue #36, if you do!

Your work will be credited for, where credit is due!

Thanks,
Makerimages

_________________
Working on SinusOS.


Top
 Profile  
 
 Post subject: Re: Paging wizard needed
PostPosted: Thu Aug 20, 2015 11:02 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
Paging code != virtual memory management.

Paging code is just some lines of code. What you are looking for is to have someone write your entire virtual memory management code; I consider that to be a major part of the kernel. It also contains a lot of design decisions that you have to make, and will deeply impact the further internal workings of your kernel. If you don't bother implementing it yourself, you can as well just create a linux distro.

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: Paging wizard needed
PostPosted: Thu Aug 20, 2015 1:45 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
@max: That's a little harsh. But, I agree that a) a virtual memory manager is more than just the code to enable paging and b) he's not likely to find someone willing to write a complete virtual memory manager.

@makerimages: I suggest that you try to ask for help where needed, read some tutorials, and work on it little by little. I too am getting rather stuck with the memory manager, but if you take it one step at a time, and implement each small little bit (like the code to allocate a new physical page, then the code to allocate a new virtual page, then the code to allocate a physical page to a virtual page, then the code to link it all together, etc.) then the job will be much easier. A good tutorial, in my opinion, is this one: http://www.brokenthorn.com/Resources/OSDev18.html. It will make more sense if you also read the previous chapter (http://www.brokenthorn.com/Resources/OSDev17.html) on physical memory management which, even though your physical memory manager sounds different to the one in the tutorial (and that is perfectly OK), will help you to understand the virtual memory management chapter as the later chapters build on the earlier ones.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


Top
 Profile  
 
 Post subject: Re: Paging wizard needed
PostPosted: Thu Aug 20, 2015 2:03 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
makerimages wrote:
As my brain has come to a halt regarding this

In that case it's time to take a rest and/or do a little more reading until you get your brain back in gear. If you are going to use paging it is so tightly integrated into the rest of the OS that not understanding it will mean you make poor design decisions.

And, let's face it, what's the incentive for someone else to help you out with the difficult parts of your pet project? Credit given in yet another hobby OS? Don't make me laugh.


Top
 Profile  
 
 Post subject: Re: Paging wizard needed
PostPosted: Thu Aug 20, 2015 2:42 pm 
Offline
Member
Member

Joined: Sat Mar 01, 2014 2:59 pm
Posts: 1146
iansjack wrote:
And, let's face it, what's the incentive for someone else to help you out with the difficult parts of your pet project? Credit given in yet another hobby OS? Don't make me laugh.
Furthermore, there's no fun in hobby OS development unless you actually do the work yourself. There's nothing like running a machine on only the code that you yourself have written.

_________________
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing


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

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 32 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