public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Assembly question
@ 2002-04-25  8:32 Szekeres Istvan
  2002-04-25 23:52 ` Mark Zealey
  0 siblings, 1 reply; 5+ messages in thread
From: Szekeres Istvan @ 2002-04-25  8:32 UTC (permalink / raw)
  To: linux-kernel

Hi,

Long time ago (older gcc) this code snippet used to compile. Now it doesn't.
Do you asm gurus have any idea what is wrong?

void p_memset_dword( void *d, int b, int l )
{
    __asm__ ("rep\n\t"
             "stosl\n\t"
             :
             : "D" (d), "a" (b), "c" (l)
             : "memory","edi", "eax", "ecx"
            );
}

The compiler says:
a.c: In function `p_memset_dword':
a.c:9: Invalid `asm' statement:
a.c:9: fixed or forbidden register 0 (ax) was spilled for class AREG.

Thanks,
Pista


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

end of thread, other threads:[~2002-04-28 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-25  8:32 Assembly question Szekeres Istvan
2002-04-25 23:52 ` Mark Zealey
2002-04-26 11:37   ` Gabriel Paubert
2002-04-26 12:34     ` Richard B. Johnson
2002-04-28 18:07       ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox