x86, reboot: Fix relocations in reboot_32.S
authorH. Peter Anvin <hpa@zytor.com>
Mon, 2 May 2011 21:33:24 +0000 (14:33 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 2 May 2011 21:44:46 +0000 (14:44 -0700)
commit7806a49ab625ebeb1709e5e87299b64932b807a7
tree3f6e43d254544d1a7cf90ab688ac4cfde967c6db
parent2be19102b71c1a45d37fec50303791daa1a06869
x86, reboot: Fix relocations in reboot_32.S

The use of base for %ebx in this file is arbitrary, *except* that we
also use it to compute the real-mode segment.  Therefore, make it so
that r_base really is the true address to which %ebx points.

This resolves kernel bugzilla 33302.

Reported-and-tested-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/n/tip-08os5wi3yq1no0y4i5m4z7he@git.kernel.org
arch/x86/kernel/reboot_32.S