Page 1 of 1

Molloy tutorial question

Posted: Thu Oct 10, 2013 8:28 am
by xlar54
I have a question about this tutorial: http://www.jamesmolloy.co.uk/tutorial_html/

Im wanting to write a simple OS in protected mode that does not use paging or multitasking. Essentially I want a single task, single user system. If that's the case, can I just remove the paging and tasking code? Would i then be dealing with contiguous memory or does the CPU / MMU still pick and choose which physical memory is being allocated?

(I realize these two things are necessary on modern OSes, but I am experimenting with some ideas, of which necessitate me removing these two elements. Just need to understand what Im dealing with in terms of memory if these are not implemented).

Thank you

Re: Molloy tutorial question

Posted: Thu Oct 10, 2013 10:57 am
by dozniak

Re: Molloy tutorial question

Posted: Thu Oct 10, 2013 11:10 am
by xlar54
Thanks, Ill take a look. I also have some bios vga code from protected mode if youd like.

Re: Molloy tutorial question

Posted: Fri Oct 11, 2013 8:06 am
by sortie
Paging is awesome. Use it.

No, really. Paging IS awesome.

If you don't want complicated address spaces, paging can make then ever simpler than physical memory! If you just use physical memory, then there's all sorts of holes in it. Segmentation sucks. If you use paging, you can map all physical memory at 0x0 (or 0x1000 or whatever you want) onwards and then things are really, really simple.

Paging is awesome.

Re: Molloy tutorial question

Posted: Fri Oct 11, 2013 10:02 am
by xlar54
So if I hear you correctly, I think what you're trying to convey is that paging is awesome. Amirite? ;)

Yeah I think I will go ahead and use it for this endeavor. Thanks!