Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62586
b: refs/heads/master
c: 5f3f7cc
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jul 22, 2007
1 parent 90aa190 commit 5e03c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41089644c110756a6d09ace77c8d7624660d086a
refs/heads/master: 5f3f7cc6ad3b548ba5f61051426df28f79fc0ee8
3 changes: 2 additions & 1 deletion trunk/arch/i386/kernel/paravirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5e03c25

Please sign in to comment.