|
@@ -81,10 +81,8 @@ struct branch {
|
|
|
u32 delta;
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
-static unsigned paravirt_patch_call(void *insnbuf,
|
|
|
- const void *target, u16 tgt_clobbers,
|
|
|
- unsigned long addr, u16 site_clobbers,
|
|
|
- unsigned len)
|
|
|
+static unsigned paravirt_patch_call(void *insnbuf, const void *target,
|
|
|
+ unsigned long addr, unsigned len)
|
|
|
{
|
|
|
struct branch *b = insnbuf;
|
|
|
unsigned long delta = (unsigned long)target - (addr+5);
|
|
@@ -149,7 +147,7 @@ static void *get_call_destination(u8 type)
|
|
|
return *((void **)&tmpl + type);
|
|
|
}
|
|
|
|
|
|
-unsigned paravirt_patch_default(u8 type, u16 clobbers, void *insnbuf,
|
|
|
+unsigned paravirt_patch_default(u8 type, void *insnbuf,
|
|
|
unsigned long addr, unsigned len)
|
|
|
{
|
|
|
void *opfunc = get_call_destination(type);
|
|
@@ -172,10 +170,8 @@ unsigned paravirt_patch_default(u8 type, u16 clobbers, void *insnbuf,
|
|
|
/* If operation requires a jmp, then jmp */
|
|
|
ret = paravirt_patch_jmp(insnbuf, opfunc, addr, len);
|
|
|
else
|
|
|
- /* Otherwise call the function; assume target could
|
|
|
- clobber any caller-save reg */
|
|
|
- ret = paravirt_patch_call(insnbuf, opfunc, CLBR_ANY,
|
|
|
- addr, clobbers, len);
|
|
|
+ /* Otherwise call the function. */
|
|
|
+ ret = paravirt_patch_call(insnbuf, opfunc, addr, len);
|
|
|
|
|
|
return ret;
|
|
|
}
|