Assembly question

From: Szekeres Istvan (szekeres@webvilag.com)
Date: Thu Apr 25 2002 - 03:32:25 EST


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

-
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/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:10 EST