VOGONS


First post, by japheth

User metadata
Rank Newbie
Rank
Newbie

Hello,

I'm using DosBox for testing some protected-mode apps and just discovered that pages marked as readonly can be written to from ring 3 protected mode, which on a real cpu is not possible.

Is this by design or is this a bug? I can imagine that some dos-extender apps may rely on getting page faults if someone tries to write such pages.

Regards

Japheth

Reply 1 of 6, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

all cores?

1+1=10

Reply 2 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

dosbox doesn't care about page protection (only for the
first access to a non-present page), doesn't care about
segment limits etc. all because those would greatly
reduce the speed.

Reply 3 of 6, by japheth

User metadata
Rank Newbie
Rank
Newbie

> all because those would greatly reduce the speed.

that's understandable, but at least optionally (possibly not at runtime if it is a speed issue, but at compiletime) it would be good to have these things included.

Reply 4 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

That'd require a lot of changes, so i doubt anybody will do this,
yet maybe somebody has a lot of time...

Reply 5 of 6, by Lofty

User metadata
Rank Member
Rank
Member

It's a shame the PC is such a complicated machine to emulate fully...

Reply 6 of 6, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

BOCHS does a good job, so if something like that is really needed
there's always the bochs- and others option.