From b43fa2327ea561248a1a3675b77c5131b51c6ab6 Mon Sep 17 00:00:00 2001
From: Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
Date: Thu, 15 May 2014 11:34:54 +0200
Subject: [PATCH] native/tramp.S: use ret instead of manual return

---
 cpu/native/tramp.S | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cpu/native/tramp.S b/cpu/native/tramp.S
index 729f030d43..25f6de0a74 100644
--- a/cpu/native/tramp.S
+++ b/cpu/native/tramp.S
@@ -18,8 +18,7 @@ __native_sig_leave_tramp:
     popal
     popfl
 
-    popl __native_saved_eip
-    jmp *-4(%esp)
+    ret
 #else
 .extern $_native_saved_eip
 .extern $_native_isr_ctx
@@ -44,6 +43,5 @@ _native_sig_leave_tramp:
     popal
     popfl
 
-    popl _native_saved_eip
-    jmp *-4(%esp)
+    ret
 #endif
-- 
GitLab