Re: Question about missing "cld" in x86 string assembly code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2011年12月18日 02:39, Linus Torvalds wrote:
On Sat, Dec 17, 2011 at 9:08 AM, Brian Gerst<brgerst@xxxxxxxxx>  wrote:

The i386 ELF ABI states "The direction flag must be set to the
‘‘forward’’ (that is, zero) direction before entry and upon exit from
a function."  Therefore it can be assumed to be clear, unless
explicitly set.

The exception, of course, being bootup, fault and interrupt handlers,
and after we've called out to foreign code (ie BIOS).

Yeah, I think I see these cld's now. Thanks for the answers!


Nai

So there *are* a few cld's sprinkled around, they are just fairly rare.

                     Linus

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]