diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-31 10:26:51 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-31 10:26:51 +0100 |
commit | 87da43c02b10e3387adfe5c69a1dae4d21ed3120 (patch) | |
tree | c5385fb1efa6585c21897a632b43398d56aa77b4 /arch/arm64/include/asm/processor.h | |
parent | 02e11cd17332186b4cf9ed88db6e63b30043be54 (diff) | |
parent | 68f0f007e6ebd2e6bed5ae5b089b70ab723d76d3 (diff) |
Merge branch 'v3.10/topic/arm64-be' of git://git.linaro.org/kernel/linux-linaro-stable into linux-linaro-lsk
Diffstat (limited to 'arch/arm64/include/asm/processor.h')
-rw-r--r-- | arch/arm64/include/asm/processor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index ab239b2c456..45b20cd6cbc 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -107,6 +107,11 @@ static inline void compat_start_thread(struct pt_regs *regs, unsigned long pc, regs->pstate = COMPAT_PSR_MODE_USR; if (pc & 1) regs->pstate |= COMPAT_PSR_T_BIT; + +#ifdef __AARCH64EB__ + regs->pstate |= COMPAT_PSR_E_BIT; +#endif + regs->compat_sp = sp; } #endif |