diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-07 18:30:42 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-07 18:30:42 +0300 |
| commit | 39cfba8ad24982ae4c8e26826d90bc024edd7430 (patch) | |
| tree | 100bcb5c5578f0cfa7d89094f0d9ce6431f48bed /arch/riscv64/kernel/entry.S | |
| parent | 5b3fbbf8bad230318aded7c5e1ab6cc607724e64 (diff) | |
| download | kmi-39cfba8ad24982ae4c8e26826d90bc024edd7430.tar.gz kmi-39cfba8ad24982ae4c8e26826d90bc024edd7430.zip | |
change register save/load to increasing order
Diffstat (limited to 'arch/riscv64/kernel/entry.S')
| -rw-r--r-- | arch/riscv64/kernel/entry.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/riscv64/kernel/entry.S b/arch/riscv64/kernel/entry.S index 02aaccf..32a04f6 100644 --- a/arch/riscv64/kernel/entry.S +++ b/arch/riscv64/kernel/entry.S @@ -48,6 +48,7 @@ _save_context: sr t1, offsetof_t1(sp) sr t2, offsetof_t2(sp) sr s0, offsetof_s0(sp) + sr s1, offsetof_s1(sp) sr a0, offsetof_a0(sp) sr a1, offsetof_a1(sp) sr a2, offsetof_a2(sp) @@ -56,7 +57,6 @@ _save_context: sr a5, offsetof_a5(sp) sr a6, offsetof_a6(sp) sr a7, offsetof_a7(sp) - sr s1, offsetof_s1(sp) sr s2, offsetof_s2(sp) sr s3, offsetof_s3(sp) sr s4, offsetof_s4(sp) @@ -119,6 +119,8 @@ _load_context: lr t0, offsetof_t0(sp) lr t1, offsetof_t1(sp) lr t2, offsetof_t2(sp) + lr s0, offsetof_s0(sp) + lr s1, offsetof_s1(sp) lr a0, offsetof_a0(sp) lr a1, offsetof_a1(sp) lr a2, offsetof_a2(sp) @@ -127,8 +129,6 @@ _load_context: lr a5, offsetof_a5(sp) lr a6, offsetof_a6(sp) lr a7, offsetof_a7(sp) - lr s0, offsetof_s0(sp) - lr s1, offsetof_s1(sp) lr s2, offsetof_s2(sp) lr s3, offsetof_s3(sp) lr s4, offsetof_s4(sp) |
