From f36d8229fd3ad1b949830b3b144a88abd1ca23b0 Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Tue, 16 Oct 2012 17:07:46 +0100 Subject: [PATCH] --- yaml --- r: 334671 b: refs/heads/master c: 16dd46bb781a1d37eeb2377e8e48276e9d14d15d h: refs/heads/master i: 334669: d403ef4c132bb0c229a4c10caf6efde5edeec0d7 334667: cebdc253d3282933eb1b53edcaaa07091dde6b44 334663: a9efc158f9bcae77e015488804b9a4b3e4653c48 334655: a83bdecfaae1ff40eabceb255ad7d36844d96758 v: v3 --- [refs] | 2 +- trunk/arch/arm64/include/asm/processor.h | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/[refs] b/[refs] index a793617ed576..41ac7e74fa43 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f71a1a42667f576ec736bb1200eba2118fee3a22 +refs/heads/master: 16dd46bb781a1d37eeb2377e8e48276e9d14d15d diff --git a/trunk/arch/arm64/include/asm/processor.h b/trunk/arch/arm64/include/asm/processor.h index 39a208a392f7..5d810044feda 100644 --- a/trunk/arch/arm64/include/asm/processor.h +++ b/trunk/arch/arm64/include/asm/processor.h @@ -92,30 +92,20 @@ static inline void start_thread_common(struct pt_regs *regs, unsigned long pc) static inline void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) { - unsigned long *stack = (unsigned long *)sp; - start_thread_common(regs, pc); regs->pstate = PSR_MODE_EL0t; regs->sp = sp; - regs->regs[2] = stack[2]; /* x2 (envp) */ - regs->regs[1] = stack[1]; /* x1 (argv) */ - regs->regs[0] = stack[0]; /* x0 (argc) */ } #ifdef CONFIG_COMPAT static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc, unsigned long sp) { - unsigned int *stack = (unsigned int *)sp; - start_thread_common(regs, pc); regs->pstate = COMPAT_PSR_MODE_USR; if (pc & 1) regs->pstate |= COMPAT_PSR_T_BIT; regs->compat_sp = sp; - regs->regs[2] = stack[2]; /* x2 (envp) */ - regs->regs[1] = stack[1]; /* x1 (argv) */ - regs->regs[0] = stack[0]; /* x0 (argc) */ } #endif