]> xenbits.xensource.com Git - unikraft/libs/libunwind.git/commitdiff
patches: Remove `UnwindRegistersSave.S` patch RELEASE-0.13.0 RELEASE-0.13.1
authorEduard Vintilă <eduard.vintila47@gmail.com>
Sun, 12 Mar 2023 19:33:03 +0000 (21:33 +0200)
committerUnikraft <monkey@unikraft.io>
Wed, 10 May 2023 12:07:22 +0000 (12:07 +0000)
This commit drops the outdated `UnwindRegistersSave.S` patch, which
incorrectly saved the RIP from the frame that caused the exception.

GitHub-Fixes: #4
Signed-off-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Reviewed-by: Marco Schlumpp <marco@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #5

patches/0001-Updated-the-RIP.patch [deleted file]

diff --git a/patches/0001-Updated-the-RIP.patch b/patches/0001-Updated-the-RIP.patch
deleted file mode 100644 (file)
index dcbdfcd..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-From 863cddb4f2f89b51b38785f49b6c7cf3fc9e3f2c Mon Sep 17 00:00:00 2001
-From: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
-Date: Mon, 3 Dec 2018 18:59:59 +0200
-Subject: [PATCH] Updated the RIP
-
-This patch changes the RIP that is saved
-by the unw_getcontext function. Now the
-RIP is pointing to the throw that has
-triggered the exception.
-
-Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
----
- UnwindRegistersSave.S | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/UnwindRegistersSave.S b/UnwindRegistersSave.S
-index 07db14b..8223ea1 100644
---- a/src/UnwindRegistersSave.S
-+++ b/src/UnwindRegistersSave.S
-@@ -88,7 +88,13 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext)
-   movq  %r13,104(PTR)
-   movq  %r14,112(PTR)
-   movq  %r15,120(PTR)
--  movq  (%rsp),TMP
-+  push %rax 
-+  movq %rbp, (%rax)
-+  movq (%rax), %rax
-+  addq $8, %rax
-+  movq (%rax), %rax
-+  movq  %rax, TMP
-+  pop %rax 
-   movq  TMP,128(PTR) # store return address as rip
-   # skip rflags
-   # skip cs
--- 
-2.19.2
-