From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: far call Date: 21 Oct 1999 09:56:12 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 22 Message-ID: <7umnvs$p4l$1@antares.lu.erisoft.se> References: <7uim9q$14k AT acp3bf DOT knirsch DOT de> NNTP-Posting-Host: propus-144.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker (broeker AT acp3bf DOT knirsch DOT de) wrote: : Gisle Vanem (giva AT bryggen DOT bgnett DOT no) wrote: : > Eli Zaretskii said: : > > > Exiting due to signal SIGSEGV : > > > General Protection Fault at eip=00001dcc, error=01d4 : > > So in this case, you are trying to use a selector 0x1d4, which is indeed : > > invalid (it's not ring-3 selector). : > : > OTOH, the error code doesn't include the ring-level. : It does. You just don't see it because you don't know where to look : --- the 2 lowest bits of the descriptor are the ring-level. Your : descriptor is 0x1d4 ==> lowest bits are 00 ==> Ring-0 was requested. How do you request (and perhaps get) a selector for a different ring-level than your own (which in DJGPP is three)? Right, MartinS