From: hjl@lucon.org (H.J. Lu)
To: joel@OARcorp.com (Joel Sherrill)
Cc: erik.ivanenko@utoronto.ca, gas2@cygnus.com
Subject: Re: i386 - GAS problem (fwd)
Date: Fri, 20 Mar 1998 15:02:00 -0000 [thread overview]
Message-ID: <m0yGAnY-00058JC@ocean.lucon.org> (raw)
In-Reply-To: <Pine.BSF.3.96.980320123036.4501Z-200000@vespucci.advicom.net>
> Date: Fri, 20 Mar 1998 15:38:16 -0500
> From: "erik.ivanenko" <erik.ivanenko@utoronto.ca>
> To: Joel Sherrill <joel@OARcorp.com>
> Subject: Re: i386 - GAS problem
>
> Joel Sherrill wrote:
>
> > Could you put together a small compilable file with this in it? binutils
> > 2.9 is getting closer and we don't want problems like this in there.
>
> The following file shows that the ds register is ignored by the lidt and
> lgdt instructions.This is also a problem with the GAS I have ( shipped with
> gcc-2.7.2.1 , Linux Universe version ).
> I suspect this has been there for a while.
>
> .section .text
> .code16
> movw $0x1000, %ax
> movw %ax, %ds
>
> lidt %ds:0x1000
> lidt 0x1000
>
> lgdt %ds:0x1000
> lgdt 0x1000
>
> .code32
>
> lidt %ds:0x1000
> lidt 0x1000
>
> lgdt %ds:0x1000
> lgdt 0x1000
>
They look ok to me. Please tell me if you run into any real problems
with your programs.
Correct me if I am wrong. I believe %ds is the default segment
register for lidt/lgdt. gas just optimizes it out.
H.J.
next prev parent reply other threads:[~1998-03-20 15:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-03-20 10:32 Joel Sherrill
1998-03-20 15:02 ` H.J. Lu [this message]
[not found] <ECS9803211657D@utoronto.ca>
1998-03-21 22:55 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0yGAnY-00058JC@ocean.lucon.org \
--to=hjl@lucon.org \
--cc=erik.ivanenko@utoronto.ca \
--cc=gas2@cygnus.com \
--cc=joel@OARcorp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).