]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commit
Modify exec_user() to pass a return value back from the called function
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2016 13:18:35 +0000 (14:18 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Oct 2016 13:42:57 +0000 (14:42 +0100)
commitc184f0dddc9d8136b9bf0f81909cac3682b3c16f
treefabf67e3651ee980466c67df21b8cf5f24d2dea9
parent67a53d29ac26348ae56cbee924b411127ad7cc7b
Modify exec_user() to pass a return value back from the called function

This turns out to be rather more useful in general, and the only changes
required to make it work is not to clobber %eax on the return back to kernel.

A compatability exec_user_void() is introduced to wrap exec_user() for
existing users with void functions.  The exec_user selftest is updated to use
the new functionality, instead of passing a result back via a static variable.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
arch/x86/entry_32.S
arch/x86/entry_64.S
include/xtf/lib.h
tests/selftest/main.c
tests/swint-emulation/main.c