diff options
author | Michael Neuling <mikey@neuling.org> | 2016-11-02 18:07:34 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-11-02 18:24:09 +1100 |
commit | ec4636b53843aa46e9226fa3bd9bc8357138840a (patch) | |
tree | c5bde9555a99c006dba6e191ceaaee6dffabbf59 /platforms | |
parent | c7e432869d8fdd0f91672bed3976bf096c90b56b (diff) | |
download | skiboot-ec4636b53843aa46e9226fa3bd9bc8357138840a.zip skiboot-ec4636b53843aa46e9226fa3bd9bc8357138840a.tar.gz skiboot-ec4636b53843aa46e9226fa3bd9bc8357138840a.tar.bz2 |
mambo: Make callthru functions return 64 bits
Make callthru functions return 64 bits so we can return larger
numbers.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/mambo/mambo.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c index 7f910b2..279ff1f 100644 --- a/platforms/mambo/mambo.c +++ b/platforms/mambo/mambo.c @@ -59,19 +59,20 @@ static void mambo_rtc_init(void) opal_register(OPAL_RTC_READ, mambo_rtc_read, 2); } -static inline int callthru2(int command, unsigned long arg1, unsigned long arg2) +static inline unsigned long callthru2(int command, unsigned long arg1, + unsigned long arg2) { - register int c asm("r3") = command; + register unsigned long c asm("r3") = command; register unsigned long a1 asm("r4") = arg1; register unsigned long a2 asm("r5") = arg2; asm volatile (".long 0x000eaeb0":"=r" (c):"r"(c), "r"(a1), "r"(a2)); return (c); } -static inline int callthru3(int command, unsigned long arg1, unsigned long arg2, - unsigned long arg3) +static inline unsigned long callthru3(int command, unsigned long arg1, + unsigned long arg2, unsigned long arg3) { - register int c asm("r3") = command; + register unsigned long c asm("r3") = command; register unsigned long a1 asm("r4") = arg1; register unsigned long a2 asm("r5") = arg2; register unsigned long a3 asm("r6") = arg3; |