Store the PC while context switching, for the benefits of DDB.

This commit is contained in:
cognet 2008-08-02 00:10:38 +00:00
parent 28e29fd053
commit 54da1b8fb2

View File

@ -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