Re: [PATCH] Fix prefetch patching in 2.5-bk

Andi Kleen (ak@muc.de)
Thu, 1 May 2003 03:51:48 +0200


On Thu, May 01, 2003 at 03:21:52AM +0200, Linus Torvalds wrote:
> and making "sourcelen==0" a special case for replacement (replace with the
> proper destination length nop, instead of having that "0x90 0x90 0x90"
> sequence).

Note sure what you mean with 0x90 sequence.

My original implementation used .rept to generate the correct number of
(single byte) nops based on the label length of the other case.
But it didn't work because I ran into at least one weird assembler bug (it internally
got confused on something and gave an impossible error message about a
missing label). Also it only generated single byte nops.

In any case you need to pad the code to the correct number of bytes,
I'm not sure how it can be done otherwise.

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