Skip to content

Commit

Permalink
fix watchpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
comex committed Jan 8, 2012
1 parent a4bb66a commit e4c8e0b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
DATA = $(word 1,$(wildcard ./data ../data)) DATA = $(word 1,$(wildcard ./data ../data))
CFLAGS += -fno-builtin -Wno-missing-field-initializers -DCIRCULAR -I$(DATA) CFLAGS += -fno-builtin -Wno-missing-field-initializers -DCIRCULAR -DWATCHPOINTS -I$(DATA)
#CFLAGS += -DWATCHPOINTS -DTRACER #CFLAGS += -DTRACER
CFLAGS += -DSPARTAN CFLAGS += -DSPARTAN
include $(DATA)/Makefile.common include $(DATA)/Makefile.common


Expand Down
1 change: 1 addition & 0 deletions creepasm.S
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,5 @@
.arm .arm
.align 2
.globl _undef_handler .globl _undef_handler
_undef_handler: _undef_handler:
# ldr pc, _undef_saved # ldr pc, _undef_saved
Expand Down
1 change: 1 addition & 0 deletions failsafe.S
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
# int run_failsafe(&result, func, a1, a2) # int run_failsafe(&result, func, a1, a2)


.arm .arm
.align 2
.globl _run_failsafe .globl _run_failsafe
_run_failsafe: _run_failsafe:
push {r4-r7, lr} push {r4-r7, lr}
Expand Down
2 changes: 1 addition & 1 deletion protoss.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static struct watch_entry *watch_start;
extern volatile struct watch_entry *watch_ptr; extern volatile struct watch_entry *watch_ptr;


extern uint32_t thread_exception_return[] 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]; static uint32_t ter_orig[4];


void watch_prefetch_handler(); void watch_prefetch_handler();
Expand Down
1 change: 1 addition & 0 deletions protossasm.S
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,5 @@
.arm .arm
.align 2
.globl _trace_prefetch_handler .globl _trace_prefetch_handler
_trace_prefetch_handler: _trace_prefetch_handler:
;# is this actually a breakpoint? ;# is this actually a breakpoint?
Expand Down

0 comments on commit e4c8e0b

Please sign in to comment.