From: "Dave Korn" <dave.korn@artimi.com>
To: "'Etienne Lorrain'" <etienne_lorrain@yahoo.fr>,
"'Nick Clifton'" <nickc@redhat.com>
Cc: <binutils@sources.redhat.com>, <drow@false.org>
Subject: RE: Binutils 2.15.97 available
Date: Mon, 25 Apr 2005 15:45:00 -0000 [thread overview]
Message-ID: <SERRANOLO2XLH6ovLwX00000105@SERRANO.CAM.ARTIMI.COM> (raw)
In-Reply-To: <20050425150342.3475.qmail@web26903.mail.ukl.yahoo.com>
----Original Message----
>From: Etienne Lorrain
>Sent: 25 April 2005 16:04
> Note that I can initialise the MOUSE structure to zero and I no more
> have this assembler error - but I am not sure this behaviour of GAS
> is the intended one.
> > asm volatile (" dataPS2 = %c0 ": : "i" (&MOUSE.data.PS2));
IIUIC, all you want to do here is initialise an assembler-level variable
with the address of MOUSE.data.PS2 at runtime, yes? So why not make your
life a load easier, and do it the other way round:
void *dataPS2 = NULL;
unsigned MOUSE_PS2_init (void)
{
MOUSE.type = MOUSE_PS2;
dataPS2 = &MOUSE.data.PS2;
return 0;
}
asm (
"PS2_mouse_callback: \n"
" .extern _dataPS2 \n"
" pushl %ds \n"
" pushl %eax \n"
" movw %cs,%ax \n"
" addw $deltaseg,%ax # not necessary if no CODE_SEGMENT \n"
" movw %ax,%ds \n"
" movl 12(%esp),%eax \n"
" movl %eax,_dataPS2 \n"
" movl 16(%esp),%eax \n"
" movl %eax,_dataPS2 + 4 \n"
" popl %eax \n"
" popl %ds \n"
" lretw \n"
);
cheers,
DaveK
--
Can't think of a witty .sigline today....
next prev parent reply other threads:[~2005-04-25 15:45 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 15:03 Etienne Lorrain
2005-04-25 15:45 ` Dave Korn [this message]
2005-04-25 16:00 ` Dave Korn
2005-04-25 16:08 ` Dave Korn
-- strict thread matches above, loose matches on Subject: below --
2005-04-25 16:21 Etienne Lorrain
2005-04-25 14:11 Etienne Lorrain
2005-04-25 14:34 ` Nick Clifton
2005-04-25 15:19 ` H. J. Lu
2005-04-20 19:51 Daniel Jacobowitz
2005-04-21 1:31 ` Mike Frysinger
2005-04-21 3:21 ` Daniel Jacobowitz
2005-04-21 8:59 ` Nick Clifton
2005-04-21 12:43 ` Mike Frysinger
2005-04-21 9:56 ` Ralf Corsepius
2005-04-21 15:30 ` Mark Mitchell
2005-04-21 15:47 ` Ralf Corsepius
2005-04-29 14:32 ` Daniel Jacobowitz
2005-04-21 10:41 ` Dave Korn
2005-04-21 13:11 ` Daniel Jacobowitz
2005-04-21 14:01 ` Dave Korn
2005-04-21 17:07 ` Richard Sandiford
2005-04-29 14:45 ` Daniel Jacobowitz
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=SERRANOLO2XLH6ovLwX00000105@SERRANO.CAM.ARTIMI.COM \
--to=dave.korn@artimi.com \
--cc=binutils@sources.redhat.com \
--cc=drow@false.org \
--cc=etienne_lorrain@yahoo.fr \
--cc=nickc@redhat.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).