Why does one use PMode???

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
KieranFoot

Why does one use PMode???

Post by KieranFoot »

Hey, what is the point of pmode.
Is it to use 32bit code or is it for error checking or both? ???
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Why does one use PMode???

Post by Solar »

Alas...

(Just rediscovered that word. Thanks, BI lazy! ;-) )

Trying to say it in one sentence, by enabling PMode you are enabling the MMU, i.e. virtual addressing, memory protection, paging et al.

Without PMode, you are basically running your CPU in 80286 compatibility mode.
Every good solution is obvious once you've found it.
KieranFoot

Re:Why does one use PMode???

Post by KieranFoot »

What are tha advantages of using pmode
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Why does one use PMode???

Post by distantvoices »

oy gewalt! This one is hard. ];->

You can use (on a i386 architecture) up to 4 gb adress space for EACH Process. No process can fiddle in any other process' adress space - except of the infamous shared memory. There also exist strategies like Copy On Write - two processes share the same data pages and when one of the two starts to write - he gets his own copy - or shared code - the processes only have data pages assinged to them and share the code pages ...

I suggest you turn on your favourite search engine and STFW !
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:Why does one use PMode???

Post by Solar »

KieranFoot wrote: What are tha advantages of using pmode
If you have to ask, don't do OS development, do reading.
Every good solution is obvious once you've found it.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Why does one use PMode???

Post by Pype.Clicker »

KieranFoot wrote: What are tha advantages of using pmode
you're no longer limitted to DOS+WritingAssistant systems, but you can open your OS to multiprogramming, efficient GUI, third-party drivers, virtual memory, network stack, efficient disk caching and all the other things i could have ommitted.
KieranFoot

Re:Why does one use PMode???

Post by KieranFoot »

Sounds like a good thing to use, i'l take solar's advice and read a bit on the subject.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Why does one use PMode???

Post by Pype.Clicker »

true ... i suggest you read one chapter of a generic book about OSes (not 'Design & Implementation yet ... rather Schilberscatz&Galvin or 'Computer OS -- a modern approach') and then one of the Intel Manual ... It should give you a good feeling on what is to be done and the kind of techniques that exists to do it ...

then you'll be ready to start development: using techniques that exists to do things that need to be done ;)
Schol-R-LEA

Re:Why does one use PMode???

Post by Schol-R-LEA »

For details on working in p-mode itself, the Intel manuals are pretty much the best source; however, as a supplement to them, I found the section on protected mode operation Indispensable PC Hardware Book to be quite helpful.
Post Reply