linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* i386: far jumps
@ 2002-07-16  2:21 Emanuele Altieri
  2002-07-19 17:44 ` h-peter recktenwald
  0 siblings, 1 reply; 3+ messages in thread
From: Emanuele Altieri @ 2002-07-16  2:21 UTC (permalink / raw)
  To: Linux Assembly List

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-22 20:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-16  2:21 i386: far jumps Emanuele Altieri
2002-07-19 17:44 ` h-peter recktenwald
2002-07-22 20:16   ` Emanuele Altieri

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 NNTP newsgroup(s).