Permalink
Browse files

fix watchpoints

  • Loading branch information...
1 parent a4bb66a commit e4c8e0bac98d10bb189cc807ff1010e220289327 @comex committed Jan 8, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −2 Makefile
  2. +1 −0 creepasm.S
  3. +1 −0 failsafe.S
  4. +1 −1 protoss.c
  5. +1 −0 protossasm.S
View
4 Makefile
@@ -1,6 +1,6 @@
DATA = $(word 1,$(wildcard ./data ../data))
-CFLAGS += -fno-builtin -Wno-missing-field-initializers -DCIRCULAR -I$(DATA)
-#CFLAGS += -DWATCHPOINTS -DTRACER
+CFLAGS += -fno-builtin -Wno-missing-field-initializers -DCIRCULAR -DWATCHPOINTS -I$(DATA)
+#CFLAGS += -DTRACER
CFLAGS += -DSPARTAN
include $(DATA)/Makefile.common
View
1 creepasm.S
@@ -1,4 +1,5 @@
.arm
+.align 2
.globl _undef_handler
_undef_handler:
# ldr pc, _undef_saved
View
1 failsafe.S
@@ -1,6 +1,7 @@
# int run_failsafe(&result, func, a1, a2)
.arm
+.align 2
.globl _run_failsafe
_run_failsafe:
push {r4-r7, lr}
View
2 protoss.c
@@ -92,7 +92,7 @@ static struct watch_entry *watch_start;
extern volatile struct watch_entry *watch_ptr;
extern uint32_t thread_exception_return[]
-asm("$_A_80_00_0c_f1_90_9f_1d_ee_XX_83_99_e5_XX_50_98_e5_00_00_55_e3");
+asm("$_A_80_00_0c_f1_90_9f_1d_ee_XX_XX_99_e5_XX_50_98_e5_00_00_55_e3");
static uint32_t ter_orig[4];
void watch_prefetch_handler();
View
1 protossasm.S
@@ -1,4 +1,5 @@
.arm
+.align 2
.globl _trace_prefetch_handler
_trace_prefetch_handler:
;# is this actually a breakpoint?

0 comments on commit e4c8e0b

Please sign in to comment.