Messages in this thread | | | Date | Thu, 25 Apr 2002 10:32:25 +0200 | From | Szekeres Istvan <> | Subject | Assembly question |
| |
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/
| |