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 RayeR Homepage, CZ, 05.09.2007, 09:53

> Just the binary of the crashing version. Debug info is not important. I
> will run it with my debugger (deb32f).

Well, check mail today evening.

> using a call gate is lowest level, there is "noone" who can change the
> regs content except your code.

OK I simplified code that input params are stored directly to ECX,(EDX,EAX) then far call and then reading it back. It works well but still when I pushal/popal around the code it crashes :P

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?

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

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