Paul Mackerras
e31aa453bb
powerpc: Use LOAD_REG_IMMEDIATE only for constants on 64-bit
...
Using LOAD_REG_IMMEDIATE to get the address of kernel symbols
generates 5 instructions where LOAD_REG_ADDR can do it in one,
and will generate R_PPC64_ADDR16_* relocations in the output when
we get to making the kernel as a position-independent executable,
which we'd rather not have to handle. This changes various bits
of assembly code to use LOAD_REG_ADDR when we need to get the
address of a symbol, or to use suitable position-independent code
for cases where we can't access the TOC for various reasons, or
if we're not running at the address we were linked at.
It also cleans up a few minor things; there's no reason to save and
restore SRR0/1 around RTAS calls, __mmu_off can get the return
address from LR more conveniently than the caller can supply it in
R4 (and we already assume elsewhere that EA == RA if the MMU is on
in early boot), and enable_64b_mode was using 5 instructions where
2 would do.
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-09-15 11:08:35 -07:00
..
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-27 05:16:38 -04:00
2008-08-04 12:02:00 +10:00
2008-09-15 11:07:38 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 13:18:17 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-09-15 11:08:08 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-18 14:22:34 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 13:18:17 +10:00
2008-08-04 12:02:00 +10:00
2008-08-18 21:40:03 +02:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 13:18:17 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 13:18:17 +10:00
2008-08-18 14:22:34 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-15 08:35:42 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-18 14:22:34 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-11 10:09:56 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-20 16:34:58 +10:00
2008-08-04 12:02:00 +10:00
2008-08-20 16:34:57 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-20 16:34:59 +10:00
2008-08-20 16:34:58 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-09-15 11:08:08 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-09-03 20:53:42 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-09-15 11:08:35 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-09-09 11:51:15 -07:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-20 16:34:58 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-18 14:22:35 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00
2008-08-04 12:02:00 +10:00