From cb18007d1734b1d3e4240611a8269dd4bf2c2016 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Mon, 5 Sep 2016 23:59:17 -0700 Subject: zero-extend RV32 physical addresses for HTIF This is a backport of 6bead31951a5f70508b343681a6f6905324f7bec. --- pk/frontend.c | 2 +- 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 -- cgit v1.1