OSDev.org
https://forum.osdev.org/

Paging, heap, multitasking and user mode tutorials
https://forum.osdev.org/viewtopic.php?f=1&t=33472
Page 1 of 1

Author:  deleted8917 [ Wed Jan 30, 2019 5:56 pm ]
Post subject:  Paging, heap, multitasking and user mode tutorials

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.

Author:  bzt [ Thu Jan 31, 2019 5:07 am ]
Post subject:  Re: Paging, heap, multitasking and user mode tutorials

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

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/