diff options
author | cognet <cognet@FreeBSD.org> | 2008-08-02 00:10:38 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2008-08-02 00:10:38 +0000 |
commit | 54da1b8fb2a6362abf12130e9274e2abbfc4a36c (patch) | |
tree | ef2e5c8ee946f6f8f08b6d626619cb5d1c845b3f /sys/arm | |
parent | 28e29fd0532d88efde2a40afb127bc80af8ab0e6 (diff) | |
download | FreeBSD-src-54da1b8fb2a6362abf12130e9274e2abbfc4a36c.zip FreeBSD-src-54da1b8fb2a6362abf12130e9274e2abbfc4a36c.tar.gz |
Store the PC while context switching, for the benefits of DDB.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/swtch.S | 1 |
1 files changed, 1 insertions, 0 deletions
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 |