]> xenbits.xensource.com Git - xen.git/commit
x86/traps: Drop use_error_code parameter from do_{,guest_}trap()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Aug 2016 16:56:56 +0000 (16:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 8 Aug 2016 11:52:56 +0000 (12:52 +0100)
commit2e426d6eecfd358b6a78553e63fcb24548010537
tree32bade17fefad698a4b2304bf4141c4956d0822e
parent9ee1d0395576283b24c87f8d5ec7bb123cadc27c
x86/traps: Drop use_error_code parameter from do_{,guest_}trap()

Whether or not an error code is needed can be determinted entirely from the
trapnr paramter, as error codes are architecturally specified.

Introduce TRAP_HAVE_EC as a bitmap of reserved vectors which have error codes,
and drop the use_error_code from all callsites.

As a result, the DO_ERROR{,_NOCODE}() macros become entirely superflouous and
can be dropped.  Update the exception_table to point straight at do_trap().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/processor.h