diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/vmi.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/i386/kernel/vmi.c b/arch/i386/kernel/vmi.c index edc339fa5038..697a70e8c0c9 100644 --- a/arch/i386/kernel/vmi.c +++ b/arch/i386/kernel/vmi.c | |||
@@ -712,11 +712,14 @@ static void *vmi_get_function(int vmicall) | |||
712 | do { \ | 712 | do { \ |
713 | reloc = call_vrom_long_func(vmi_rom, get_reloc, \ | 713 | reloc = call_vrom_long_func(vmi_rom, get_reloc, \ |
714 | VMI_CALL_##vmicall); \ | 714 | VMI_CALL_##vmicall); \ |
715 | if (rel->type != VMI_RELOCATION_NONE) { \ | 715 | if (rel->type == VMI_RELOCATION_CALL_REL) \ |
716 | BUG_ON(rel->type != VMI_RELOCATION_CALL_REL); \ | ||
717 | paravirt_ops.opname = (void *)rel->eip; \ | 716 | paravirt_ops.opname = (void *)rel->eip; \ |
718 | } else if (rel->type == VMI_RELOCATION_NOP) \ | 717 | else if (rel->type == VMI_RELOCATION_NOP) \ |
719 | paravirt_ops.opname = (void *)vmi_nop; \ | 718 | paravirt_ops.opname = (void *)vmi_nop; \ |
719 | else if (rel->type != VMI_RELOCATION_NONE) \ | ||
720 | printk(KERN_WARNING "VMI: Unknown relocation " \ | ||
721 | "type %d for " #vmicall"\n",\ | ||
722 | rel->type); \ | ||
720 | } while (0) | 723 | } while (0) |
721 | 724 | ||
722 | /* | 725 | /* |