[lkml]   [1998]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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.



Geert Uytterhoeven
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}
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
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:46    [W:0.069 / U:5.048 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site