diff options
author | Andi Kleen <ak@suse.de> | 2007-07-22 07:21:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 14:17:17 -0400 |
commit | 5f3f7cc6ad3b548ba5f61051426df28f79fc0ee8 (patch) | |
tree | fc9e43fd9e72f08ea00aad05959cf6b114107db1 /arch/i386 | |
parent | 41089644c110756a6d09ace77c8d7624660d086a (diff) |
x86_64: Fix paravirt compilation
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/kernel/paravirt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/paravirt.c b/arch/i386/kernel/paravirt.c index 79c167fcaee9..ea962c0667d5 100644 --- 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) | |||
154 | { | 154 | { |
155 | unsigned char *jmp = site; | 155 | unsigned char *jmp = site; |
156 | unsigned long delta = (unsigned long)target - (unsigned long)(jmp+5); | 156 | unsigned long delta = (unsigned long)target - (unsigned long)(jmp+5); |
157 | struct branch b; | ||
157 | 158 | ||
158 | if (len < 5) | 159 | if (len < 5) |
159 | return len; /* call too long for patch site */ | 160 | return len; /* call too long for patch site */ |
160 | 161 | ||
161 | b.opcode = 0xe9; /* jmp */ | 162 | b.opcode = 0xe9; /* jmp */ |
162 | b.delta = delta; | 163 | b.delta = delta; |
163 | text_poke(call, (unsigned char *)&b, 5); | 164 | text_poke(jmp, (unsigned char *)&b, 5); |
164 | 165 | ||
165 | return 5; | 166 | return 5; |
166 | } | 167 | } |