Re: [PATCH] x86: add missed clobber for 32-bit memmove

From: H. Peter Anvin
Date: Fri Oct 17 2008 - 12:36:01 EST


Jike Song wrote:
memmove() is implemented by inline assembly. It calls std at first
and cld at last, but EFLAGS still should be clobbered.

gcc always treats EFLAGS as clobbered on x86. The "cc" clobber is needed on some platforms, but is a noop on x86.

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