From: "Jarek Pelczar" Newsgroups: comp.os.msdos.djgpp Subject: LDTs in DPMI Date: Fri, 3 Jan 2003 09:39:15 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 14 Message-ID: NNTP-Posting-Host: pb60.krosno.cvx.ppp.tpnet.pl X-Trace: news.tpi.pl 1041583151 16597 213.77.217.60 (3 Jan 2003 08:39:11 GMT) X-Complaints-To: usenet AT tpi DOT pl NNTP-Posting-Date: Fri, 3 Jan 2003 08:39:11 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi ! I'd like to make some kind of emulator of one OS. I create two LDTs for CS and DS wchich relocate code to execute. I create alias descriptors using DPMI function with _my_cs() and _my_ds(), then I set base and limit of executable memory. When I'm trying to execute code, DPMI host dumps registers and program crashes. I've modified int 0x40 vector to mine. Can it be the problem ? But everything works fine when I call interrupt handler. Maybe it is problem with GCC ?