UML - change sigcontext fields to match x86
PATCH 1/1 UML - change sigcontext fields to match x86
git-x86, in commit 70aa1bd3839e3ec74ce65316528a82570e8de666, changed a lot of the sigcontext field names. This patch changes UML usage to match.
I also changed includes of generic headers from "" to <>.
--- arch/um/sys-i386/signal.c | 50 +++++++++++++++---------------- arch/um/sys-x86_64/signal.c | 70 ++++++++++++++++++++++---------------------- 2 files changed, 60 insertions(+), 60 deletions(-)
arch/um/sys-i386/signal.c +25 -25
@@ -3,10 +3,10 @@* Licensed under the GPL */ -#include "linux/ptrace.h" -#include "asm/unistd.h" -#include "asm/uaccess.h" -#include "asm/ucontext.h" +#include <linux/ptrace.h> +#include <asm/unistd.h> +#include <asm/uaccess.h> +#include <asm/ucontext.h> #include "frame_kern.h" #include "skas.h"
@@ -18,17 +18,17 @@ void copy_sc(struct uml_pt_regs *regs, vREGS_FS (regs->gp) = sc->fs;REGS_ES (regs->gp) = sc->es;REGS_DS (regs->gp) = sc->ds; -REGS_EDI (regs->gp) = sc->edi; -REGS_ESI (regs->gp) = sc->esi; -REGS_EBP (regs->gp) = sc->ebp; -REGS_SP (regs->gp) = sc->esp; -REGS_EBX (regs->gp) = sc->ebx; -REGS_EDX (regs->gp) = sc->edx; -REGS_ECX (regs->gp) = sc->ecx; -REGS_EAX (regs->gp) = sc->eax; -REGS_IP (regs->gp) = sc->eip; +REGS_EDI (regs->gp) = sc->di; +REGS_ESI (regs->gp) = sc->si; +REGS_EBP (regs->gp) = sc->bp; +REGS_SP (regs->gp) = sc->sp; +REGS_EBX (regs->gp) = sc->bx; +REGS_EDX (regs->gp) = sc->dx; +REGS_ECX (regs->gp) = sc->cx; +REGS_EAX (regs->gp) = sc->ax; +REGS_IP (regs->gp) = sc->ip;REGS_CS (regs->gp) = sc->cs; -REGS_EFLAGS (regs->gp) = sc->eflags; +REGS_EFLAGS (regs->gp) = sc->flags;REGS_SS (regs->gp) = sc->ss; }
@@ -228,18 +228,18 @@ static int copy_sc_to_user(struct sigcon sc.fs =REGS_FS (regs->regs.gp); sc.es =REGS_ES (regs->regs.gp); sc.ds =REGS_DS (regs->regs.gp); - sc.edi =REGS_EDI (regs->regs.gp); - sc.esi =REGS_ESI (regs->regs.gp); - sc.ebp =REGS_EBP (regs->regs.gp); - sc.esp = sp; - sc.ebx =REGS_EBX (regs->regs.gp); - sc.edx =REGS_EDX (regs->regs.gp); - sc.ecx =REGS_ECX (regs->regs.gp); - sc.eax =REGS_EAX (regs->regs.gp); - sc.eip =REGS_IP (regs->regs.gp); + sc.di =REGS_EDI (regs->regs.gp); + sc.si =REGS_ESI (regs->regs.gp); + sc.bp =REGS_EBP (regs->regs.gp); + sc.sp = sp; + sc.bx =REGS_EBX (regs->regs.gp); + sc.dx =REGS_EDX (regs->regs.gp); + sc.cx =REGS_ECX (regs->regs.gp); + sc.ax =REGS_EAX (regs->regs.gp); + sc.ip =REGS_IP (regs->regs.gp); sc.cs =REGS_CS (regs->regs.gp); - sc.eflags =REGS_EFLAGS (regs->regs.gp); - sc.esp_at_signal = regs->regs.gp[UESP ]; + sc.flags =REGS_EFLAGS (regs->regs.gp); + sc.sp_at_signal = regs->regs.gp[UESP ]; sc.ss = regs->regs.gp[SS ]; sc.cr2 = fi->cr2; sc.err = fi->error_code;
arch/um/sys-x86_64/signal.c +35 -35
105 lines not on this page · raw message
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 3 lines · Jeff Dike
git-x86, in commit
70aa1bd3839e3ec74ce65316528a82570e8de666, changed a lot of the sigcontext field names. This patch changes UML usage to match.
thanks, we indeed missed those. Should we carry this in x86.git, or would you like to carry this in your UML tree?
Ingo
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 2 lines · Ingo Molnar
thanks, we indeed missed those. Should we carry this in x86.git, or would you like to carry this in your UML tree?
Probably better for it to go in x86.git - that way it travels with your sigcontext patch.
Jeff
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 6 lines · Jeff Dike
Quoted 2 lines · Ingo Molnar
thanks, we indeed missed those. Should we carry this in x86.git, or would you like to carry this in your UML tree?
Probably better for it to go in x86.git - that way it travels with your sigcontext patch.
ok, added it.
Ingo
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel