diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-02-04 15:29:06 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-02-04 15:29:06 -0800 |
commit | f1f8dbbed01d67a3cb64a17c73078d124c33d2ab (patch) | |
tree | 77181fb45946e2a5883b87d09d65d08439186672 /pk/frontend.c | |
parent | ac88604e8850779c33ec888ccc8399604fb2677c (diff) | |
download | pk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.zip pk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.tar.gz pk-f1f8dbbed01d67a3cb64a17c73078d124c33d2ab.tar.bz2 |
Abandon MIPS convention for indicating syscall errors in register a3
Diffstat (limited to 'pk/frontend.c')
-rw-r--r-- | pk/frontend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/frontend.c b/pk/frontend.c index 3452b23..77d71a6 100644 --- a/pk/frontend.c +++ b/pk/frontend.c @@ -5,7 +5,7 @@ #include "frontend.h" #include <stdint.h> -sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3) +long frontend_syscall(long n, long a0, long a1, long a2, long a3) { static volatile uint64_t magic_mem[8]; @@ -25,7 +25,7 @@ sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3) mb(); - sysret_t ret = {magic_mem[0],magic_mem[1]}; + long ret = magic_mem[0]; spinlock_unlock(&lock); return ret; |