lkml.org 
[lkml]   [2004]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: RFC: avoid asmlinkage on x86 traps/interrupts


On Thu, 4 Nov 2004, Andrea Arcangeli wrote:
>
> I wonder why they don't forbid it completely then. I mean, what's magic
> about an input parmeter here? Clobbers are about the internals of
> the asm

Actually, they are mostly about register allocation. And that's apparently
why the gcc rules ended up changing: by setting a clobber, you basically
allocate that register for the instruction, and tell gcc that it's dead.

That's also likely why such a register cannot be an input (or an output):
it cannot be allocated.

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

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.030 / U:0.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site