b389889535
The initial TLB mapping for the kernel boot didn't set the memory coherent attribute, MAS2[M], in SMP mode. If this code supported booting a secondary processor, which it doesn't yet, but if it did, then when a secondary processor boots, it would probably signal the primary processor by setting a variable called something like __secondary_hold_acknowledge. However, due to the lack of the M bit, the primary processor would not snoop the transaction (even if a transaction were broadcast). If primary CPU's L1 D-cache had a copy, it would not be flushed and the CPU would never see the ack. Which would have resulted in the primary CPU spinning for a long time, perhaps a full second before it gives up, while it would have waited for the ack from the secondary CPU that it wouldn't have been able to see because of the stale cache. The value of MAS2 for the boot page TLB1 entry is a compile time constant, so there is no need to calculate it in powerpc assembly language. Also, from the MPC8572 manual section 6.12.5.3, "Bits that represent offsets within a page are ignored and should be cleared." Existing code didn't clear them, this code does. The same when the page of KERNELBASE is found; we don't need to use asm to mask the lower 12 bits off. In the code that computes the address to rfi from, don't hard code the offset to 24 bytes, but have the assembler figure that out for us. Signed-off-by: Trent Piepho <tpiepho@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> |
||
---|---|---|
.. | ||
iseries | ||
8xx_immap.h | ||
8253pit.h | ||
abs_addr.h | ||
agp.h | ||
asm-compat.h | ||
atomic.h | ||
auxvec.h | ||
backlight.h | ||
bitops.h | ||
bootx.h | ||
btext.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
cell-pmu.h | ||
cell-regs.h | ||
checksum.h | ||
clk_interface.h | ||
code-patching.h | ||
compat.h | ||
cpm.h | ||
cpm1.h | ||
cpm2.h | ||
cputable.h | ||
cputhreads.h | ||
cputime.h | ||
current.h | ||
dbdma.h | ||
dcr-generic.h | ||
dcr-mmio.h | ||
dcr-native.h | ||
dcr-regs.h | ||
dcr.h | ||
delay.h | ||
device.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
edac.h | ||
eeh.h | ||
eeh_event.h | ||
elf.h | ||
emergency-restart.h | ||
errno.h | ||
exception.h | ||
fb.h | ||
fcntl.h | ||
feature-fixups.h | ||
firmware.h | ||
fixmap.h | ||
floppy.h | ||
fs_pd.h | ||
fsl_gtm.h | ||
fsl_lbc.h | ||
ftrace.h | ||
futex.h | ||
gpio.h | ||
grackle.h | ||
hardirq.h | ||
heathrow.h | ||
highmem.h | ||
hugetlb.h | ||
hvcall.h | ||
hvconsole.h | ||
hvcserver.h | ||
hw_irq.h | ||
hydra.h | ||
i8259.h | ||
ibmebus.h | ||
ide.h | ||
immap_86xx.h | ||
immap_cpm2.h | ||
immap_qe.h | ||
io-defs.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
iommu.h | ||
ipcbuf.h | ||
ipic.h | ||
irq.h | ||
irq_regs.h | ||
irqflags.h | ||
Kbuild | ||
kdebug.h | ||
kdump.h | ||
kexec.h | ||
keylargo.h | ||
kgdb.h | ||
kmap_types.h | ||
kprobes.h | ||
kvm.h | ||
kvm_asm.h | ||
kvm_host.h | ||
kvm_para.h | ||
kvm_ppc.h | ||
libata-portmap.h | ||
linkage.h | ||
lmb.h | ||
local.h | ||
lppaca.h | ||
lv1call.h | ||
machdep.h | ||
macio.h | ||
mc146818rtc.h | ||
mediabay.h | ||
mman.h | ||
mmu-8xx.h | ||
mmu-40x.h | ||
mmu-44x.h | ||
mmu-fsl-booke.h | ||
mmu-hash32.h | ||
mmu-hash64.h | ||
mmu.h | ||
mmu_context.h | ||
mmzone.h | ||
module.h | ||
mpc6xx.h | ||
mpc8xx.h | ||
mpc52xx.h | ||
mpc52xx_psc.h | ||
mpc86xx.h | ||
mpc512x.h | ||
mpc8260.h | ||
mpic.h | ||
msgbuf.h | ||
msi_bitmap.h | ||
mutex.h | ||
nvram.h | ||
of_device.h | ||
of_platform.h | ||
ohare.h | ||
oprofile_impl.h | ||
paca.h | ||
page.h | ||
page_32.h | ||
page_64.h | ||
param.h | ||
parport.h | ||
pasemi_dma.h | ||
pci-bridge.h | ||
pci.h | ||
percpu.h | ||
pgalloc-32.h | ||
pgalloc-64.h | ||
pgalloc.h | ||
pgtable-4k.h | ||
pgtable-64k.h | ||
pgtable-ppc32.h | ||
pgtable-ppc64.h | ||
pgtable.h | ||
phyp_dump.h | ||
pmac_feature.h | ||
pmac_low_i2c.h | ||
pmac_pfunc.h | ||
pmc.h | ||
pmi.h | ||
poll.h | ||
posix_types.h | ||
ppc-pci.h | ||
ppc4xx.h | ||
ppc_asm.h | ||
processor.h | ||
prom.h | ||
ps3.h | ||
ps3av.h | ||
ps3fb.h | ||
ps3stor.h | ||
pSeries_reconfig.h | ||
ptrace.h | ||
qe.h | ||
qe_ic.h | ||
reg.h | ||
reg_8xx.h | ||
reg_booke.h | ||
reg_fsl_emb.h | ||
resource.h | ||
rheap.h | ||
rio.h | ||
rtas.h | ||
rtc.h | ||
rwsem.h | ||
scatterlist.h | ||
seccomp.h | ||
sections.h | ||
sembuf.h | ||
serial.h | ||
setjmp.h | ||
setup.h | ||
sfp-machine.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
smu.h | ||
socket.h | ||
sockios.h | ||
sparsemem.h | ||
spinlock.h | ||
spinlock_types.h | ||
spu.h | ||
spu_csa.h | ||
spu_info.h | ||
spu_priv1.h | ||
sstep.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
suspend.h | ||
synch.h | ||
syscall.h | ||
syscalls.h | ||
systbl.h | ||
system.h | ||
tce.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
tsi108.h | ||
tsi108_irq.h | ||
tsi108_pci.h | ||
types.h | ||
uaccess.h | ||
ucc.h | ||
ucc_fast.h | ||
ucc_slow.h | ||
ucontext.h | ||
udbg.h | ||
uic.h | ||
unaligned.h | ||
uninorth.h | ||
unistd.h | ||
user.h | ||
vdso.h | ||
vdso_datapage.h | ||
vga.h | ||
vio.h | ||
xilinx_intc.h | ||
xmon.h | ||
xor.h |