From: Emanuele Altieri <ealtieri@hampshire.edu>
To: Linux Assembly List <linux-assembly@vger.kernel.org>
Subject: i386: far jumps
Date: 15 Jul 2002 22:21:26 -0400 [thread overview]
Message-ID: <1026786087.2055.99.camel@italia> (raw)
Greetings,
I'm doing some experiments with far jumps to different code segments.
For example:
ljmp $16, $hello
where $16 is the segment selector, and "hello" is a label that I set up
for testing. The code above works fine.
However, when I change the code as following:
movw $16, %dx
movw %dx, %fs
ljmp *%fs:hello
I get a general protection error. I don't understand why. I believe it's
a notation error. Can anybody see it?
I'm interested in this because I need the segment argument of ljmp to be
variable.
Thanks!
-Emanuele
next reply other threads:[~2002-07-16 2:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-16 2:21 Emanuele Altieri [this message]
2002-07-19 17:44 ` i386: far jumps h-peter recktenwald
2002-07-22 20:16 ` Emanuele Altieri
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=1026786087.2055.99.camel@italia \
--to=ealtieri@hampshire.edu \
--cc=linux-assembly@vger.kernel.org \
/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