No functional change, other than the failure cases, which now produce a
far more clear error message.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
/* Pass off the Multiboot info structure to C land. */
mov multiboot_ptr(%rip),%edi
call __start_xen
- ud2 /* Force a panic (invalid opcode). */
+ BUG /* __start_xen() shouldn't return. */
/*** DESCRIPTOR TABLES ***/
sti
SAVE_ALL
call vmx_vmentry_failure
- ud2
+ BUG /* vmx_vmentry_failure() shouldn't return. */
ENTRY(vmx_asm_do_vmentry)
GET_CURRENT(%rbx)
FATAL_exception_with_ints_disabled:
movq %rsp,%rdi
call fatal_trap
- ud2
+ BUG /* fatal_trap() shouldn't return. */
ENTRY(divide_error)
pushq $0
SAVE_ALL STAC
movq %rsp,%rdi
call do_double_fault
- ud2
+ BUG /* do_double_fault() shouldn't return. */
.pushsection .init.text, "ax", @progbits
ENTRY(early_page_fault)
jne 789f
cmpq UREGS_r12(%rsp),%r12
je 987f
-789: ud2
+789: BUG /* Corruption of partial register state. */
.subsection 0
#endif
.endif