From ac1f18332fef7f522f7137e38b2b40bc58531513 Mon Sep 17 00:00:00 2001 From: graf_chokolo Date: Tue, 29 Mar 2011 15:58:46 +0200 Subject: [PATCH] hvcall result is signed --- ps3hvc_dev.c | 2 +- ps3hvc_dev.h | 2 +- ps3hvc_hvcall.c | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ps3hvc_dev.c b/ps3hvc_dev.c index d023b08..4f2f514 100644 --- a/ps3hvc_dev.c +++ b/ps3hvc_dev.c @@ -36,7 +36,7 @@ int ps3hvc_dev_close(int fd) } int ps3hvc_dev_hvcall(int fd, uint64_t number, uint64_t in_args, - uint64_t out_args, uint64_t args[], uint64_t *result) + uint64_t out_args, uint64_t args[], int64_t *result) { struct ps3hvc_ioctl_hvcall *arg; int size, error; diff --git a/ps3hvc_dev.h b/ps3hvc_dev.h index 8dd2e30..9c7962c 100644 --- a/ps3hvc_dev.h +++ b/ps3hvc_dev.h @@ -25,6 +25,6 @@ int ps3hvc_dev_open(const char *path); int ps3hvc_dev_close(int fd); int ps3hvc_dev_hvcall(int fd, uint64_t number, uint64_t in_args, - uint64_t out_args, uint64_t args[], uint64_t *result); + uint64_t out_args, uint64_t args[], int64_t *result); #endif diff --git a/ps3hvc_hvcall.c b/ps3hvc_hvcall.c index 855fc25..67bc1b4 100644 --- a/ps3hvc_hvcall.c +++ b/ps3hvc_hvcall.c @@ -128,7 +128,8 @@ static int cmd_get_repo_node_val(int fd, struct opts *opts, int argc, char **arg { uint64_t lpar_id, key[4]; char *endptr, *opt; - uint64_t args[7], result; + uint64_t args[7]; + int64_t result; int i, error; if (optind >= argc) { @@ -181,7 +182,8 @@ static int cmd_panic(int fd, struct opts *opts, int argc, char **argv) { uint64_t arg1; char *endptr; - uint64_t args[1], result; + uint64_t args[1]; + int64_t result; int error; if (optind >= argc) { -- 2.11.4.GIT