Module: xenomai-3
Branch: next
Commit: 39588db75de7cc2d2ea30b1933b66b175f9aba1e
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=39588db75de7cc2d2ea30b1933b66b175f9aba1e

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Feb 13 18:11:05 2015 +0100

cobalt/x86: cobalt/x86: drop %esp from mayday fixup in 32bit mode

We don't need this anymore, since %esp is part of the register frame
saved by int80.

---

 kernel/cobalt/arch/x86/include/asm/xenomai/thread.h |    1 -
 kernel/cobalt/arch/x86/mayday.c                     |    3 ---
 2 files changed, 4 deletions(-)

diff --git a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h 
b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
index 544507c..f58caf7 100644
--- a/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
+++ b/kernel/cobalt/arch/x86/include/asm/xenomai/thread.h
@@ -39,7 +39,6 @@ struct xnarchtcb {
        struct {
                unsigned long ip;
                unsigned long ax;
-               unsigned long sp;
        } mayday;
 };
 
diff --git a/kernel/cobalt/arch/x86/mayday.c b/kernel/cobalt/arch/x86/mayday.c
index 22a9196..15f07bd 100644
--- a/kernel/cobalt/arch/x86/mayday.c
+++ b/kernel/cobalt/arch/x86/mayday.c
@@ -191,7 +191,6 @@ void *xnarch_get_mayday_page(void)
 void xnarch_handle_mayday(struct xnarchtcb *tcb, struct pt_regs *regs,
                          unsigned long tramp)
 {
-       tcb->mayday.sp = regs->sp;
        tcb->mayday.ip = regs->ip;
        tcb->mayday.ax = regs->ax;
        regs->ip = tramp;
@@ -204,12 +203,10 @@ void xnarch_fixup_mayday(struct xnarchtcb *tcb, struct 
pt_regs *regs)
                test_thread_flag(TIF_IA32)) {
                regs->ip = tcb->mayday.ip;
                regs->ax = tcb->mayday.ax;
-               regs->sp = tcb->mayday.sp;
        } else
                regs->ax = tcb->mayday.ip;
 #else
        regs->ip = tcb->mayday.ip;
        regs->ax = tcb->mayday.ax;
-       regs->sp = tcb->mayday.sp;
 #endif
 }


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to