From 8149bcca21537f3522bf12afdad905ec5aeb28d8 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 12 Jul 2011 07:42:44 +0800 Subject: arm subroutines called from thumb mode must be declared global --- Debugger/debug_test.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Debugger') diff --git a/Debugger/debug_test.S b/Debugger/debug_test.S index eec7a01..a4082a5 100644 --- a/Debugger/debug_test.S +++ b/Debugger/debug_test.S @@ -70,10 +70,12 @@ exit_dbg__test_arm_instrstep: bl dbg__test_thumb_instr_sub1 ldmfd sp!, {pc} + .global dbg__test_arm_instr_sub1 dbg__test_arm_instr_sub1: mov r0, #10 bx lr + .global dbg__test_arm_instr_sub1 dbg__test_arm_instr_sub2: stmfd sp!, {r4, lr} mov r0, #TRUE -- cgit v1.2.3