lkml.org 
[lkml]   [1998]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] 2.1.131: i386 tweak to switch_to()
On Tue, 15 Dec 1998, Andrea Arcangeli wrote:
> On Tue, 15 Dec 1998, Geert Uytterhoeven wrote:
>
> >cc == condition codes
>
> Ah, but does gcc have a way to save/restore the condition code register
> on i386? (and btw the condition code register is eflags? right?)

I don't know that much about ia32 assembler. I don't have any ia32 boxes.

But you use the `cc' constraint to tell gcc that the inline asm may have
changed the condition codes. Some instructions don't change cc, others do. On
PPC, you can even decide yourself whether you want an instruction to influence
the cc or not.

Greetings,

Geert

--
Geert Uytterhoeven Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:46    [from the cache]
©2003-2011 Jasper Spaans