arch/at91sam3x8e: update struct reg_sw_snapshot

With my discovery of how to actually use thumb2
instructions in assembly files, the layout of
register snapshot has changed because they are
now pushed in consecutive order.
This commit is contained in:
anna 2021-08-01 02:25:34 +02:00
parent c2538b4516
commit adce3f3ed7
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

@ -17,6 +17,10 @@ extern uint32_t sys_core_clock;
* hardware routines on IRQ entry. Required for scheduling / context switching.
*/
struct reg_sw_snapshot {
word_t r4;
word_t r5;
word_t r6;
word_t r7;
word_t r8;
word_t r9;
word_t r10;
@ -26,10 +30,6 @@ struct reg_sw_snapshot {
* because the IRQ entry overwrites it
*/
void *lr; /* alias r14 */
word_t r4;
word_t r5;
word_t r6;
word_t r7;
};
/**