Skip to content
Snippets Groups Projects
Commit 971eaba9 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

patmos: restructure context_switch for platin

parent 1cde9624
No related branches found
No related tags found
No related merge requests found
......@@ -53,10 +53,8 @@ void context_load(const TCB *to) {
"mts $s8 = $r15 \n"
"nop\n"
"sens $r12 \n"
"ret \n"
"mts $s3 = $r11 \n"
"mts $s0 = $r9 \n"
"nop"
: : "r"(to->dynamic_context)
);
switch_context_load:
......@@ -125,8 +123,6 @@ void context_save_and_load(const TCB * from, const TCB *to) {
"sens $r12 \n"
"mts $s3 = $r11 \n"
"mts $s0 = $r9 \n"
"retnd \n"
"nop"
: : "r" (from->dynamic_context), "r"(to->dynamic_context)
);
switch_context_save_and_load:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment