Paging, heap, multitasking and user mode tutorials

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
deleted8917
Member
Member
Posts: 119
Joined: Wed Dec 12, 2018 12:16 pm

Paging, heap, multitasking and user mode tutorials

Post by deleted8917 »

I was following the James Molloy's kernel development tutorials. (6-10)
But after a while checking the wiki I came across an article describing the errors in the tutorial. I saw that there were many, especially what I was focusing on (paging, multitasking and user mode)
It is unfortunate as they are one of the few tutorials that serve and are complete. Are there other tutorials that recommend me to describe how to do what I want?
Thanks.
User avatar
bzt
Member
Member
Posts: 1584
Joined: Thu Oct 13, 2016 4:55 pm
Contact:

Re: Paging, heap, multitasking and user mode tutorials

Post by bzt »

I'd suggest to avoid tutorials in that manner. They are good to write your own small PoCs, learn how things (paging, multitasking etc.) work, but do not build your OS on any of them. That's not what they are for. The reason for this is simple: it is YOUR operating system, and nobody can read your mind and write a tutorial for you. Also tutorials may suggest that the way in which they're doing things is the only way. That's just not true, there are almost infinite number of ways to do things.

So instead blindly following a tutorial, do the following:
1. design your OS (yes, on paper, don't code anything at his point)
2. split your design into smaller parts (paging, multitasking, process-handling, driver interface etc.)
3. study tutorials to learn how they have done one or more of those parts
4. using parts of those tutorials, create testable PoCs (proof of concepts) of your own
5. finally, put your PoC code together, adding functionalities to your OS one by one

Cheers,
bzt
Post Reply