From: Anton Blanchard <anton@samba.org>
To: linuxppc-dev@ozlabs.org
Cc: paulus@samba.org
Subject: [PATCH] Remove last_syscall
Date: Tue, 20 Mar 2007 10:08:33 -0500 [thread overview]
Message-ID: <20070320150833.GI31173@kryten> (raw)
Remove last_syscall from 32bit powerpc, its been gone in 64bit for years.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
Index: linux-2.6/arch/powerpc/kernel/asm-offsets.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/asm-offsets.c 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/arch/powerpc/kernel/asm-offsets.c 2007-03-07 14:27:13.000000000 -0600
@@ -77,7 +77,6 @@
DEFINE(KSP_VSID, offsetof(struct thread_struct, ksp_vsid));
#else /* CONFIG_PPC64 */
DEFINE(PGDIR, offsetof(struct thread_struct, pgdir));
- DEFINE(LAST_SYSCALL, offsetof(struct thread_struct, last_syscall));
#if defined(CONFIG_4xx) || defined(CONFIG_BOOKE)
DEFINE(THREAD_DBCR0, offsetof(struct thread_struct, dbcr0));
DEFINE(PT_PTRACED, PT_PTRACED);
Index: linux-2.6/arch/powerpc/kernel/entry_32.S
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/entry_32.S 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/arch/powerpc/kernel/entry_32.S 2007-03-07 14:27:13.000000000 -0600
@@ -191,7 +191,6 @@
0:
_GLOBAL(DoSyscall)
- stw r0,THREAD+LAST_SYSCALL(r2)
stw r3,ORIG_GPR3(r1)
li r12,0
stw r12,RESULT(r1)
Index: linux-2.6/arch/powerpc/kernel/process.c
===================================================================
--- linux-2.6.orig/arch/powerpc/kernel/process.c 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/arch/powerpc/kernel/process.c 2007-03-07 14:27:57.000000000 -0600
@@ -567,7 +567,6 @@
kregs->nip = *((unsigned long *)ret_from_fork);
#else
kregs->nip = (unsigned long)ret_from_fork;
- p->thread.last_syscall = -1;
#endif
return 0;
Index: linux-2.6/include/asm-powerpc/processor.h
===================================================================
--- linux-2.6.orig/include/asm-powerpc/processor.h 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/include/asm-powerpc/processor.h 2007-03-07 14:27:13.000000000 -0600
@@ -133,7 +133,6 @@
mm_segment_t fs; /* for get_fs() validation */
#ifdef CONFIG_PPC32
void *pgdir; /* root of page-table tree */
- signed long last_syscall;
#endif
#if defined(CONFIG_4xx) || defined (CONFIG_BOOKE)
unsigned long dbcr0; /* debug control register values */
Index: linux-2.6/arch/ppc/kernel/asm-offsets.c
===================================================================
--- linux-2.6.orig/arch/ppc/kernel/asm-offsets.c 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/arch/ppc/kernel/asm-offsets.c 2007-03-07 14:27:13.000000000 -0600
@@ -40,7 +40,6 @@
DEFINE(PTRACE, offsetof(struct task_struct, ptrace));
DEFINE(KSP, offsetof(struct thread_struct, ksp));
DEFINE(PGDIR, offsetof(struct thread_struct, pgdir));
- DEFINE(LAST_SYSCALL, offsetof(struct thread_struct, last_syscall));
DEFINE(PT_REGS, offsetof(struct thread_struct, regs));
DEFINE(THREAD_FPEXC_MODE, offsetof(struct thread_struct, fpexc_mode));
DEFINE(THREAD_FPR0, offsetof(struct thread_struct, fpr[0]));
Index: linux-2.6/arch/ppc/kernel/entry.S
===================================================================
--- linux-2.6.orig/arch/ppc/kernel/entry.S 2007-03-07 14:27:11.000000000 -0600
+++ linux-2.6/arch/ppc/kernel/entry.S 2007-03-07 14:27:13.000000000 -0600
@@ -191,7 +191,6 @@
0:
_GLOBAL(DoSyscall)
- stw r0,THREAD+LAST_SYSCALL(r2)
stw r3,ORIG_GPR3(r1)
li r12,0
stw r12,RESULT(r1)
reply other threads:[~2007-03-20 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070320150833.GI31173@kryten \
--to=anton@samba.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.