| ... | @@ -464,10 +464,11 @@ const Arm = struct { | ... | @@ -464,10 +464,11 @@ const Arm = struct { |
| 464 | \\ stm r0, {r0-r12} | 464 | \\ stm r0, {r0-r12} |
| 465 | \\ str r13, [r0, #0x34] | 465 | \\ str r13, [r0, #0x34] |
| 466 | \\ str r14, [r0, #0x38] | 466 | \\ str r14, [r0, #0x38] |
| 467 | \\ str r15, [r0, #0x3c] | 467 | \\ mov r1, pc |
| | 468 | \\ str r1, [r0, #0x3c] |
| 468 | : | 469 | : |
| 469 | : [r] "{r0}" (&ctx.r), | 470 | : [r] "{r0}" (&ctx.r), |
| 470 | : .{ .memory = true }); | 471 | : .{ .r1 = true, .memory = true }); |
| 471 | return ctx; | 472 | return ctx; |
| 472 | } | 473 | } |
| 473 | | 474 | |