RE: ltr() from locore.h seems a bit wierd with gcc

From: Dines, Eric <Eric.Dines_at_nospam.org>
Date: Mon Apr 24 2000 - 07:53:35 PDT

You're absolutely right...insofar as it's working is concerned.
Compiled and ran like a charm....
I wonder how VSTa is doing it with the self compile?

cheers
Eric

shouldnt it be ltr %%ax? the task register is loaded with a pointer into
the GDT which containes a special entry for the current task state
segment...
gdt entries are indexed by 16 bit values not 32... at least that is what i
use in my code.. (not VSTa) which seems to compile fine under newest
egcs(gcc).

On Sun, Apr 23, 2000 at 05:51:27PM +0800, Dines, Eric wrote:
> "ltr %%eax\n\t"
> I had a look at the assembly code when compiled -S, and it has
>
> ltr %eax
> jmp 1f
> error message says "unknown i386 operands"
>
> Any suggestions anyone?

-- 
--------------------------------------------------------------
John Meacham   http://synergy.foo.net/~john/   john_at_foo.net
California Institute of Technology, Student.
--------------------------------------------------------------
-------------------------------------------------------------------------
Received on Mon Apr 24 08:15:15 2000

This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:56 PDT