diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-12-18 15:52:13 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-12-18 16:07:53 -0800 |
commit | 7306006f103567fcf595d23dd741da0b8642f4c5 (patch) | |
tree | 779b11f355093d7982d01d8ba383eb74f0bf25ad /arch/x86/kernel | |
parent | d8af4ce490e92adfa123ae79899332bd829903e7 (diff) | |
download | linux-7306006f103567fcf595d23dd741da0b8642f4c5.tar.gz linux-7306006f103567fcf595d23dd741da0b8642f4c5.tar.bz2 linux-7306006f103567fcf595d23dd741da0b8642f4c5.zip |
x86, realmode: Pointer walk cleanups, pull out invariant use of __pa()
The pointer arithmetic in this function was really bizarre, where in
fact all we really wanted was a simple pointer array walk. Use the
much more idiomatic construction for that (*ptr++).
Factor an invariant use of __pa() out of the relocation loop. At
least on 64 bits it seems gcc isn't capable of doing that
automatically.
Change the scope of a couple of variables to make it extra obvious
that they are extremely local temp variables.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/n/tip-rd908t9c8kvcojdabtmm94mb@git.kernel.org
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions