diff options
author | Palmer Dabbelt <palmer@dabbelt.com> | 2016-09-05 23:59:17 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@dabbelt.com> | 2016-09-05 23:59:17 -0700 |
commit | cb18007d1734b1d3e4240611a8269dd4bf2c2016 (patch) | |
tree | 2a0f3c220f53fbc5f974b1510d3fc06adfa69c09 /pk | |
parent | 85ae17aa149b9ea114bdd70cc30ea7e73813fb48 (diff) | |
download | pk-cb18007d1734b1d3e4240611a8269dd4bf2c2016.zip pk-cb18007d1734b1d3e4240611a8269dd4bf2c2016.tar.gz pk-cb18007d1734b1d3e4240611a8269dd4bf2c2016.tar.bz2 |
zero-extend RV32 physical addresses for HTIFrvt-master
This is a backport of 6bead31951a5f70508b343681a6f6905324f7bec.
Diffstat (limited to 'pk')
-rw-r--r-- | pk/frontend.c | 2 | ||||
-rw-r--r-- | pk/frontend.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pk/frontend.c b/pk/frontend.c index 52e26fa..e734703 100644 --- a/pk/frontend.c +++ b/pk/frontend.c @@ -22,7 +22,7 @@ uint64_t tohost_sync(unsigned dev, unsigned cmd, uint64_t payload) return m.data; } -long frontend_syscall(long n, long a0, long a1, long a2, long a3, long a4, long a5, long a6) +long frontend_syscall(long n, uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6) { static volatile uint64_t magic_mem[8]; diff --git a/pk/frontend.h b/pk/frontend.h index 40f7c19..9a747f1 100644 --- a/pk/frontend.h +++ b/pk/frontend.h @@ -18,7 +18,7 @@ #define FROMHOST_DATA(fromhost_value) ((uint64_t)(fromhost_value) << 16 >> 16) void die(int) __attribute__((noreturn)); -long frontend_syscall(long n, long a0, long a1, long a2, long a3, long a4, long a5, long a6); +long frontend_syscall(long n, uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6); uint64_t tohost_sync(unsigned dev, unsigned cmd, uint64_t payload); #endif |