acrn-kernel/arch/powerpc/platforms/iseries
Paul Mackerras e62cee42e6 powerpc: Avoid bad relocations in iSeries code
Subrata Modak reported that building a CONFIG_RELOCATABLE kernel with
CONFIG_ISERIES enabled gives the following warnings:

WARNING: 4 bad relocations
c00000000007216e R_PPC64_ADDR16_HIGHEST  __ksymtab+0x00000000009dcec8
c000000000072172 R_PPC64_ADDR16_HIGHER  __ksymtab+0x00000000009dcec8
c00000000007217a R_PPC64_ADDR16_HI  __ksymtab+0x00000000009dcec8
c00000000007217e R_PPC64_ADDR16_LO  __ksymtab+0x00000000009dcec8

The reason is that decrementer_iSeries_masked is using
LOAD_REG_IMMEDIATE to get the address of a kernel symbol, which
creates relocations that aren't handled by the kernel relocator code.

Instead of reading the tb_ticks_per_jiffy variable, we can just set
the decrementer to its maximum value (0x7fffffff) and that will work
just as well.  In fact timer_interrupt sets the decrementer to that
value initially anyway, and we are sure to get into timer_interrupt
once interrupts are reenabled because we store 1 to the decrementer
interrupt flag in the lppaca (LPPACADECRINT(r12) here).

Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2010-05-21 17:31:08 +10:00
..
Kconfig
Makefile
call_hpt.h
call_pci.h
call_sm.h
dt.c
exception.S powerpc: Avoid bad relocations in iSeries code 2010-05-21 17:31:08 +10:00
exception.h
htab.c
hvcall.S
hvlog.c
hvlpconfig.c
iommu.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ipl_parms.h
irq.c powerpc: Remove whitespace in irq chip name fields 2010-02-17 14:02:48 +11:00
irq.h
it_exp_vpd_panel.h
it_lp_naca.h
ksyms.c
lpardata.c
lpevents.c
main_store.h
mf.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
misc.S
naca.h
pci.c powerpc/iseries/pci: Use __ratelimit 2010-04-07 18:00:50 +10:00
pci.h
proc.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
processor_vpd.h
release_data.h
setup.c powerpc: Remove trailing space in messages 2010-02-09 13:56:23 +11:00
setup.h
smp.c powerpc/cpumask: Convert iseries SMP code to new cpumask API 2010-05-06 17:16:15 +10:00
smp.h
spcomm_area.h
vio.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
viopath.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
vpd_areas.h