how "stable" the flat mode of 386??

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
koni

how "stable" the flat mode of 386??

Post by koni »

i mean, is it easy to program in flat mode of 386 and is that mode stable? what are the advantages and the disadvantages of flat mode?

-koni-
Koni

RE:is that a bad question??

Post by Koni »

i thinks, there's no memory hardware protection, how to program a software protection which is really secure?

please write back

thanx koni
goran

RE:is that a bad question??

Post by goran »

There is one pdf file on the Intel site talking about system development support starting from i386. I think that all control registers(CR0-CR4) are present (but am not sure).

goran
carbonBased

RE:is that a bad question??

Post by carbonBased »

Depends on what your definition the 'flat' memory model is.

I'm assuming you mean un-segmented, 0...4GB selectors for code, data and stack.  However, there is still hardware protection in these scheme, via the pager.

In fact, this is the architecture that most modern OSs use... especially in amateur OSs, segmentation is usually avoided.  I to, don't use segmentation.  I find the use of both the pager and segmentation hardware a bit overkill... not to mention, difficult to port to other architectures (many of which (most?) have no notion of segments).

Cheers,
Jeff
Post Reply