aboutsummaryrefslogtreecommitdiff
path: root/devkit
diff options
context:
space:
mode:
Diffstat (limited to 'devkit')
-rw-r--r--devkit/masochist.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devkit/masochist.c b/devkit/masochist.c
new file mode 100644
index 0000000..ddd6018
--- /dev/null
+++ b/devkit/masochist.c
@@ -0,0 +1,11 @@
+#include "cacheracer.h"
+
+void __start(int core_id, unsigned char payload) {
+ volatile int *ptr = (volatile int*) HOME_DATA;
+ while (1) {
+ ptr[0] = WRITE_TRAP;
+ ptr[1] = WRITE_TRAP;
+ ptr[0] = 0;
+ ptr[1] = 0;
+ }
+}