aboutsummaryrefslogtreecommitdiff
path: root/machine/finisher.h
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2017-08-14 17:55:31 -0700
committerGitHub <noreply@github.com>2017-08-14 17:55:31 -0700
commit3f20915effa623e11b139ba431841c7af2689cdd (patch)
treeb70fd9c21448c077e6d521c8c2038445f0844640 /machine/finisher.h
parent2dcae927fd6cc4493de0f77434a7f191157ba8b7 (diff)
downloadpk-3f20915effa623e11b139ba431841c7af2689cdd.zip
pk-3f20915effa623e11b139ba431841c7af2689cdd.tar.gz
pk-3f20915effa623e11b139ba431841c7af2689cdd.tar.bz2
finisher: support terminating sifive devices simulation (#61)
Diffstat (limited to 'machine/finisher.h')
-rw-r--r--machine/finisher.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/machine/finisher.h b/machine/finisher.h
new file mode 100644
index 0000000..60d10b4
--- /dev/null
+++ b/machine/finisher.h
@@ -0,0 +1,13 @@
+#ifndef _RISCV_FINISHER_H
+#define _RISCV_FINISHER_H
+
+#include <stdint.h>
+
+#define FINISHER_REG_FINISH 0
+#define FINISHER_FAIL 0x3333
+#define FINISHER_PASS 0x5555
+
+void finisher_exit(uint16_t code);
+void query_finisher(uintptr_t fdt);
+
+#endif