summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2020-07-14 13:04:37 -0700
committerGitHub <noreply@github.com>2020-07-14 13:04:37 -0700
commit4d4a4352f4dbd8149af956e30579d9e14860a5a7 (patch)
tree9a377c58ee6e6093e9d40ffe5dfa5b2dd4b69b55
parent2f75dc2940f1f780b1f2d12f41daec9c92fc445a (diff)
parent9041acee7f54e90bbc8993a49eab58e014c45356 (diff)
downloadenv-4d4a4352f4dbd8149af956e30579d9e14860a5a7.zip
env-4d4a4352f4dbd8149af956e30579d9e14860a5a7.tar.gz
env-4d4a4352f4dbd8149af956e30579d9e14860a5a7.tar.bz2
Merge pull request #24 from wuzhy/master
fix a building error
-rw-r--r--v/vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/v/vm.c b/v/vm.c
index 6bf05f7..71700f5 100644
--- a/v/vm.c
+++ b/v/vm.c
@@ -17,8 +17,8 @@
void trap_entry();
void pop_tf(trapframe_t*);
-volatile uint64_t tohost;
-volatile uint64_t fromhost;
+extern volatile uint64_t tohost;
+extern volatile uint64_t fromhost;
static void do_tohost(uint64_t tohost_value)
{