Re: Can anyone explain "movl %eax %eax"?

From: David Miller
Date: Wed Feb 09 2011 - 18:04:43 EST


From: Jidong Xiao <jidong.xiao@xxxxxxxxx>
Date: Wed, 9 Feb 2011 18:02:09 -0500

> Oh, I see. Thank you. So similarly, the operation "xorl %eax,%eax" is
> used for the same reason, right? I see that appears in more files.

The xorl clears the entire register.
--
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/