PERFORCE change 29643 for review

Peter Wemm peter at FreeBSD.org
Thu Apr 24 15:54:42 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=29643

Change 29643 by peter at peter_daintree on 2003/04/24 15:54:34

	update sigcontext to match trapframe and friends.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/include/signal.h#10 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/include/signal.h#10 (text+ko) ====

@@ -74,23 +74,27 @@
 struct sigcontext {
 	struct __sigset sc_mask;	/* signal mask to restore */
 	register_t	sc_onstack;		/* sigstack state to restore */
-	register_t	sc_gs;			/* machine state (struct trapframe) */
-	register_t	sc_fs;
-	register_t	sc_es;
-	register_t	sc_ds;
-	register_t	sc_edi;
-	register_t	sc_esi;
-	register_t	sc_ebp;
-	register_t	sc_ebx;
-	register_t	sc_edx;
-	register_t	sc_ecx;
-	register_t	sc_eax;
+	register_t	sc_r15;		/* machine state (struct trapframe) */
+	register_t	sc_r14;
+	register_t	sc_r13;
+	register_t	sc_r12;
+	register_t	sc_r11;
+	register_t	sc_r10;
+	register_t	sc_r9;
+	register_t	sc_r8;
+	register_t	sc_rdi;
+	register_t	sc_rsi;
+	register_t	sc_rbp;
+	register_t	sc_rbx;
+	register_t	sc_rdx;
+	register_t	sc_rcx;
+	register_t	sc_rax;
 	register_t	sc_trapno;
 	register_t	sc_err;
-	register_t	sc_eip;
+	register_t	sc_rip;
 	register_t	sc_cs;
-	register_t	sc_efl;
-	register_t	sc_esp;
+	register_t	sc_rflags;
+	register_t	sc_rsp;
 	register_t	sc_ss;
 	long	sc_len;			/* sizeof(mcontext_t) */
 	/*
@@ -103,13 +107,6 @@
 	long	sc_fpstate[128] __aligned(16);
 	long	sc_spare2[8];
 };
-
-#define	sc_sp		sc_esp
-#define	sc_fp		sc_ebp
-#define	sc_pc		sc_eip
-#define	sc_ps		sc_efl
-#define	sc_eflags	sc_efl
-
 #endif /* __BSD_VISIBLE */
 
 #endif /* !_MACHINE_SIGNAL_H_ */


More information about the p4-projects mailing list