aboutsummaryrefslogtreecommitdiff
path: root/risu.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2011-03-09 13:23:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2011-03-10 15:20:40 +0000
commite8dbcf0da00a4ca38e3622ba216e8837a9be91d7 (patch)
treeda692cd323a31e3e6184c0f836d50bd4b39389c9 /risu.h
parent876fe55db1eae687e2f7d1b868cf4933fd68cf68 (diff)
risu: Implement new memory block ops
Implement the new risu memory block ops: set, get, reget and compare.
Diffstat (limited to 'risu.h')
-rw-r--r--risu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/risu.h b/risu.h
index 66613dd..ea084c7 100644
--- a/risu.h
+++ b/risu.h
@@ -23,6 +23,18 @@ void send_response_byte(int sock, int resp);
extern uint32_t image_start_address;
+extern uint8_t *memblock;
+
+/* Ops code under test can request from risu: */
+#define OP_COMPARE 0
+#define OP_TESTEND 1
+#define OP_SETMEMBLOCK 2
+#define OP_GETMEMBLOCK 3
+#define OP_COMPAREMEM 4
+
+/* The memory block should be this long */
+#define MEMBLOCKLEN 8192
+
/* Interface provided by CPU-specific code: */
/* Send the register information from the struct ucontext down the socket.