From 54da1b8fb2a6362abf12130e9274e2abbfc4a36c Mon Sep 17 00:00:00 2001 From: cognet Date: Sat, 2 Aug 2008 00:10:38 +0000 Subject: Store the PC while context switching, for the benefits of DDB. --- sys/arm/arm/swtch.S | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/arm/arm/swtch.S') diff --git a/sys/arm/arm/swtch.S b/sys/arm/arm/swtch.S index 77703a2..8f0f9b2 100644 --- a/sys/arm/arm/swtch.S +++ b/sys/arm/arm/swtch.S @@ -257,6 +257,7 @@ ENTRY(cpu_switch) strd r10, [r2, #(PCB_R10)] strd r12, [r2, #(PCB_R12)] #endif + str pc, [r2, #(PCB_PC)] /* * NOTE: We can now use r8-r13 until it is time to restore -- cgit v1.1