projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4108964
)
x86_64: Fix paravirt compilation
author
Andi Kleen
<ak@suse.de>
Sun, 22 Jul 2007 11:21:41 +0000
(13:21 +0200)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 18:17:17 +0000
(11:17 -0700)
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/paravirt.c
patch
|
blob
|
history
diff --git
a/arch/i386/kernel/paravirt.c
b/arch/i386/kernel/paravirt.c
index 79c167fcaee9d97558c173bde5647bdd83445ebb..ea962c0667d50edb07df04e43a3ab1884dd7df1d 100644
(file)
--- a/
arch/i386/kernel/paravirt.c
+++ b/
arch/i386/kernel/paravirt.c
@@
-154,13
+154,14
@@
unsigned paravirt_patch_jmp(void *target, void *site, unsigned len)
{
unsigned char *jmp = site;
unsigned long delta = (unsigned long)target - (unsigned long)(jmp+5);
+ struct branch b;
if (len < 5)
return len; /* call too long for patch site */
b.opcode = 0xe9; /* jmp */
b.delta = delta;
- text_poke(
call
, (unsigned char *)&b, 5);
+ text_poke(
jmp
, (unsigned char *)&b, 5);
return 5;
}