aboutsummaryrefslogtreecommitdiffstats
path: root/dhrystone
diff options
context:
space:
mode:
Diffstat (limited to 'dhrystone')
-rw-r--r--dhrystone/start.S4
-rw-r--r--dhrystone/stdlib.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/dhrystone/start.S b/dhrystone/start.S
index 092ba96..9fb2359 100644
--- a/dhrystone/start.S
+++ b/dhrystone/start.S
@@ -46,6 +46,6 @@ start:
sw a4,0(a0)
sw a5,0(a0)
- /* break */
- sbreak
+ /* trap */
+ ebreak
diff --git a/dhrystone/stdlib.c b/dhrystone/stdlib.c
index 1b04026..b4d2a2f 100644
--- a/dhrystone/stdlib.c
+++ b/dhrystone/stdlib.c
@@ -36,7 +36,7 @@ char *malloc(int size)
// printf("[malloc(%d) -> %d (%d..%d)]", size, (int)p, heap_memory_used, heap_memory_used + size);
heap_memory_used += size;
if (heap_memory_used > 1024)
- asm("sbreak");
+ asm("ebreak");
return p;
}