aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/debug_rom.S
diff options
context:
space:
mode:
Diffstat (limited to 'debug_rom/debug_rom.S')
-rwxr-xr-xdebug_rom/debug_rom.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/debug_rom/debug_rom.S b/debug_rom/debug_rom.S
index a3339b4..832ac49 100755
--- a/debug_rom/debug_rom.S
+++ b/debug_rom/debug_rom.S
@@ -12,13 +12,11 @@
#define DSCRATCH 0x792
-# TODO: Should be 0x400
-#define DEBUG_RAM (-0x400)
+#define DEBUG_RAM 0x400
#define DEBUG_RAM_SIZE 64
-# TODO: Should be 0x100, 0x108
-#define SETHALTNOT (-0x100)
-#define CLEARDEBINT (-0x108)
+#define SETHALTNOT 0x100
+#define CLEARDEBINT 0x108
.global entry
.global resume
@@ -58,7 +56,8 @@ check_halt:
exit:
# Restore s0.
csrr s0, DSCRATCH
- eret
+ # TODO: dret?
+ mret
_entry: