Will Deacon c0d3fce5e1 arm64: switch_to: calculate cpu context pointer using separate register
Commit 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
moved the thread_struct to the bottom of task_struct. As a result, the
offset is now too large to be used in an immediate add on arm64 with
some kernel configs:

arch/arm64/kernel/entry.S: Assembler messages:
arch/arm64/kernel/entry.S:588: Error: immediate out of range
arch/arm64/kernel/entry.S:597: Error: immediate out of range

This patch calculates the offset using an additional register instead of
an immediate offset.

Fixes: 0c8c0f03e3a2 ("x86/fpu, sched: Dynamically allocate 'struct fpu'")
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Olof Johansson <olof@lixom.net>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2015-07-22 10:56:41 +01:00
..
2012-09-17 13:42:21 +01:00
2015-05-27 13:22:24 +01:00
2014-05-29 09:08:08 +01:00
2014-12-09 13:12:47 -08:00
2015-06-02 17:44:51 +01:00
2014-07-10 12:36:40 +01:00
2014-09-25 15:35:41 +01:00
2015-04-24 08:23:45 -07:00
2014-11-28 10:24:59 +00:00
2015-07-01 11:53:46 -07:00
2015-04-13 20:40:10 +02:00
2015-01-27 09:38:08 +00:00