delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/31/00:51:40

Date: Thu, 31 May 2001 06:29:59 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "J. Weeks" <jweeks AT mailandnews DOT com>
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

> From: "J. Weeks" <jweeks AT mailandnews DOT com>
> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019