Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

For Rayer - shared resources between DOS and WinXP (Announce)

posted by RayeR Homepage, CZ, 11.07.2008, 11:18

> Yes, addresses in GDT/LDT are linear addresses. Physical addresses are
> "used" by CR3, page dirs and page tables.

Well, in fact I don't need true physical address but address which will have same meaning inside DJGPP program and outside in win32 app. So when I will create descriptor with same linear base in win32 app and will reach the same data as DJGPP prog. But as I saw NTVDM has assigned same linear address for multiple instances it will not work. If I use this linear address for descriptor inside win32 app it will point probably to somewhere else. Maybe it would work under w9x.
Anyway I need to exchange some pointer to data which will work for both djgpp prog and win 32 app. As I understand calling VDD allows me to exchange data in registers (so maybe pointers) but how to get pointer usable for both sides? Or does NT kernel have some special functions to read memory inside NTVDM DPMI space? I would imagine somethinkg like ntvdm_movedata(UINT32 ntvdm_linear_address, UINT8 *buffer, UINT32 size);

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

 

Complete thread:

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