From 86a76b0825c200ebedd7a5914154a94ad16fa662 Mon Sep 17 00:00:00 2001
From: David Li
Date: Thu, 14 Jan 2016 18:06:53 -0700
Subject: Properly check for write traps
---
devkit/masochist.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'devkit')
diff --git a/devkit/masochist.c b/devkit/masochist.c
index a1dc18c..aac2fc8 100644
--- a/devkit/masochist.c
+++ b/devkit/masochist.c
@@ -2,7 +2,7 @@
void __start(int core_id, unsigned char payload) {
volatile char *ptr = (volatile char*) HOME_DATA;
- while (1) {
- ptr[0] = WRITE_TRAP;
- }
+ volatile int *ptr2 = (volatile int*) HOME_DATA;
+ ptr[core_id] = WRITE_TRAP;
+ ptr2[0] = 0;
}
--
cgit v1.2.3