OSDN Git Service

arm-semi.c: Handle get/put_user() failure accessing arguments
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 14 Oct 2012 09:52:27 +0000 (09:52 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 24 Oct 2012 12:33:29 +0000 (13:33 +0100)
commitf296c0d172735612cad8af5fafb8dedeaaa2a109
treeecff5385dc5656c01b000bb14f6b35545c133ff6
parenta8170e5e97ad17ca169c64ba87ae2f53850dab4c
arm-semi.c: Handle get/put_user() failure accessing arguments

Rework the handling of arguments to ARM semihosting calls so that we
handle a possible failure return from get_user_ual() or put_user_ual().
(This incidentally silences a lot of warnings from clang about
"expression result unused").

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/arm-semi.c