linux-user: implement reboot syscall
commit0f6b4d21121bec70b383b4a3bc1c46d9c83f8692
authorAlexander Graf <agraf@suse.de>
Tue, 27 Sep 2011 12:39:42 +0000 (27 14:39 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Thu, 27 Oct 2011 11:42:40 +0000 (27 14:42 +0300)
tree78d200a6f19a48b8f8e641a0d9448d9dcc84bb51
parentf4c690101c74afcc58deead71f6302fe343718b7
linux-user: implement reboot syscall

For OBS, we're running a full cross-guest inside of a VM. When a build
is done there, we reboot the guest as shutdown mechanism.

Unfortunately, reboot is not implemented in linux-user. So this mechanism
fails, spilling unpretty warnings. This patch implements sys_reboot()
emulation.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c