lkml.org 
[lkml]   [2003]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix prefetch patching in 2.5-bk
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.115 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site