From d2da3691de5364f5d079c98e422f5e38e790d8a4 Mon Sep 17 00:00:00 2001
From: Thierno-Souleymane BAH <thiernosouleymane.bah.etu@univ-lille.fr>
Date: Wed, 20 Jan 2021 10:57:58 +0100
Subject: [PATCH] fix(coredump issue fixed, =r missed)

---
 try.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/try.c b/try.c
index 4fa273c..ea0bbaf 100644
--- a/try.c
+++ b/try.c
@@ -52,9 +52,9 @@ void switch_to_ctx(ctx_t *pctx)
     }
 
     current_ctx = pctx;
-    asm("movl %%esp, %0"
+    asm("movl %0, %%esp"
         "\n\t"
-        "movl %%ebp, %1"
+        "movl %1, %%ebp"
         :
         : "r"(current_ctx->esp), "r"(current_ctx->ebp));
 
-- 
GitLab