Commit 338c8227 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Remove last_syscall, we can work the syscall out easily from

our symbolic backtrace.
parent cb365512
...@@ -56,7 +56,6 @@ show_syscalls_task: ...@@ -56,7 +56,6 @@ show_syscalls_task:
* Handle a system call. * Handle a system call.
*/ */
_GLOBAL(DoSyscall) _GLOBAL(DoSyscall)
std r0,THREAD+LAST_SYSCALL(r13)
ld r11,_CCR(r1) /* Clear SO bit in CR */ ld r11,_CCR(r1) /* Clear SO bit in CR */
lis r10,0x1000 lis r10,0x1000
andc r11,r11,r10 andc r11,r11,r10
......
...@@ -52,7 +52,6 @@ main(void) ...@@ -52,7 +52,6 @@ main(void)
/* task_struct->thread */ /* task_struct->thread */
DEFINE(THREAD, offsetof(struct task_struct, thread)); DEFINE(THREAD, offsetof(struct task_struct, thread));
DEFINE(LAST_SYSCALL, offsetof(struct thread_struct, last_syscall));
DEFINE(PT_REGS, offsetof(struct thread_struct, regs)); DEFINE(PT_REGS, offsetof(struct thread_struct, regs));
DEFINE(THREAD_FPR0, offsetof(struct thread_struct, fpr[0])); DEFINE(THREAD_FPR0, offsetof(struct thread_struct, fpr[0]));
DEFINE(THREAD_FPSCR, offsetof(struct thread_struct, fpscr)); DEFINE(THREAD_FPSCR, offsetof(struct thread_struct, fpscr));
......
...@@ -117,7 +117,6 @@ void show_regs(struct pt_regs * regs) ...@@ -117,7 +117,6 @@ void show_regs(struct pt_regs * regs)
regs->msr&MSR_DR ? 1 : 0); regs->msr&MSR_DR ? 1 : 0);
printk("TASK = %p[%d] '%s' ", printk("TASK = %p[%d] '%s' ",
current, current->pid, current->comm); current, current->pid, current->comm);
printk("Last syscall: %ld ", current->thread.last_syscall);
printk("\nlast math %p ", last_task_used_math); printk("\nlast math %p ", last_task_used_math);
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
...@@ -223,8 +222,6 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp, ...@@ -223,8 +222,6 @@ copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
memcpy(&p->thread.fpr, &current->thread.fpr, sizeof(p->thread.fpr)); memcpy(&p->thread.fpr, &current->thread.fpr, sizeof(p->thread.fpr));
p->thread.fpscr = current->thread.fpscr; p->thread.fpscr = current->thread.fpscr;
p->thread.last_syscall = -1;
return 0; return 0;
} }
......
...@@ -651,7 +651,6 @@ struct thread_struct { ...@@ -651,7 +651,6 @@ struct thread_struct {
unsigned long ksp; /* Kernel stack pointer */ unsigned long ksp; /* Kernel stack pointer */
struct pt_regs *regs; /* Pointer to saved register state */ struct pt_regs *regs; /* Pointer to saved register state */
mm_segment_t fs; /* for get_fs() validation */ mm_segment_t fs; /* for get_fs() validation */
signed long last_syscall;
double fpr[32]; /* Complete floating point set */ double fpr[32]; /* Complete floating point set */
unsigned long fpscr; /* Floating point status */ unsigned long fpscr; /* Floating point status */
}; };
...@@ -662,7 +661,6 @@ struct thread_struct { ...@@ -662,7 +661,6 @@ struct thread_struct {
INIT_SP, /* ksp */ \ INIT_SP, /* ksp */ \
(struct pt_regs *)INIT_SP - 1, /* regs */ \ (struct pt_regs *)INIT_SP - 1, /* regs */ \
KERNEL_DS, /*fs*/ \ KERNEL_DS, /*fs*/ \
0, /* last_syscall */ \
{0}, /* fpr */ \ {0}, /* fpr */ \
0 /* fpscr */ \ 0 /* fpscr */ \
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment