Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

VESAMTTR (recovered from Google) (DOSX)

posted by Japheth Homepage, Germany (South), 06.09.2007, 08:27

> BTW I tried to play with code under WinXP VDM. I can read GDTR and LDTR, I
> can allocate LDT descriptor, I can set descriptor's base and limit along
> GDTR values, but when I try to read some data (movedata or farpeekb) via
> selector of this descriptor it crashes. How does NT protect reading of
> GDT? My code has PL=3 and my LDT decriptor I'm acessing has also DLP=3 so
> this should be OK. Is it some paging magic here? Or does CPU have some
> flag to protect GDT against all PL>0 code?

on NT the pages which contain GDT, IDT, LDT and paging tables are protected ("system" PTEs). IIRC some versions of NT/XP additionally don't allow descriptor limits > 7FFFFFFFh (which caused some troubles for older versions of DJGPP).

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 248 users online (0 registered, 248 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum