diff options
author | Ivan Kokshaysky <ink@jurassic.park.msu.ru> | 2008-06-21 01:25:39 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-21 01:46:10 +0200 |
commit | 9267b4b3880d00dc2dab90f1d817c856939114f7 (patch) | |
tree | 9823a76657f257d71aac2a5f4374c56560dd2e6e /sound | |
parent | Linux 2.6.26-rc7 (diff) | |
download | linux-9267b4b3880d00dc2dab90f1d817c856939114f7.tar.xz linux-9267b4b3880d00dc2dab90f1d817c856939114f7.zip |
alpha: fix module load failures on smp (bug #10926)
To calculate addresses of locally defined variables, GCC uses 32-bit
displacement from the GP. Which doesn't work for per cpu variables in
modules, as an offset to the kernel per cpu area is way above 4G.
The workaround is to force allocation of a GOT entry for per cpu variable
using ldq instruction with a 'literal' relocation.
I had to use custom asm/percpu.h, as a required argument magic doesn't
work with asm-generic/percpu.h macros.
Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions