X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: RayeR Newsgroups: comp.os.msdos.djgpp Subject: Re: running ring0 code under DJGPP Date: Sun, 02 Sep 2007 07:40:52 -0700 Organization: http://groups.google.com Lines: 17 Message-ID: <1188744052.577710.243560@d55g2000hsg.googlegroups.com> References: <200708300412 DOT l7U4CdBI021314 AT delorie DOT com> <1188595285 DOT 964939 DOT 209070 AT d55g2000hsg DOT googlegroups DOT com> NNTP-Posting-Host: 89.176.103.156 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1188744052 5563 127.0.0.1 (2 Sep 2007 14:40:52 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 2 Sep 2007 14:40:52 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse AT google DOT com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=89.176.103.156; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk I'm doing some experiments again... 1) Do I need to setup callgate in GDT or can be used LDT as good? 2) How do I allocate GDT descriptor? As I can see, there's only 10h entries in my GDT under DOS and all are used. Undew win9x there are plenty of free GDT entries and I'm able to write there. 3) Under win9x I point callgate to "magic" selector 28h (GDT[5]) which has following attributes: GDT[005h]: base = 00000000h, limit = FFFFFFFFh, system: N, DPL = 0, type: XR* I don't understnd why, that was taken from some example but seems to be constant under win9x. But there's no similar descriptor with cwsdpmi under dos. BTW I tried cwsdpr0 and it gave all cs,ds,ss PL=0 but I'd like to make it without it if possible.