Molloy tutorial question

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
xlar54
Posts: 12
Joined: Mon Sep 16, 2013 1:12 pm

Molloy tutorial question

Post 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
User avatar
dozniak
Member
Member
Posts: 723
Joined: Thu Jul 12, 2012 7:29 am
Location: Tallinn, Estonia

Re: Molloy tutorial question

Post by dozniak »

Learn to read.
xlar54
Posts: 12
Joined: Mon Sep 16, 2013 1:12 pm

Re: Molloy tutorial question

Post by xlar54 »

Thanks, Ill take a look. I also have some bios vga code from protected mode if youd like.
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

Re: Molloy tutorial question

Post 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.
xlar54
Posts: 12
Joined: Mon Sep 16, 2013 1:12 pm

Re: Molloy tutorial question

Post 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!
Post Reply