Date: Thu, 31 May 2001 06:29:59 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "J. Weeks" Message-Id: <9003-Thu31May2001062959+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3B156A6F.291FC4B3@mailandnews.com> (jweeks@mailandnews.com) Subject: Re: far calls with inline AT&T References: <3B156A6F DOT 291FC4B3 AT mailandnews DOT com> 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 > From: "J. Weeks" > Newsgroups: comp.os.msdos.djgpp > Date: Wed, 30 May 2001 17:47:27 -0400 > > I want to call a callgate at descriptor 0x28, so my code is as follows: > __asm__( > "mov $0x28, %ax\n" \ > "mov %ax, %es \n" \ > "call %es:0x0 \n"); > > But it keeps telling me its ignoring my prefix (which I assume to be the > %es:... ). Any ideas why, and how I can go about this far call. Use "lcall", not "call". Note that if the callgate doesn't allow Ring-3 code to call it, your program will GPFault.